OpenVPN 3 Core Library
Loading...
Searching...
No Matches
sslchoose.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
#ifndef OPENVPN_SSL_SSLCHOOSE_H
13
#define OPENVPN_SSL_SSLCHOOSE_H
14
15
#include <
openvpn/crypto/definitions.hpp
>
16
#include <
openvpn/crypto/cryptochoose.hpp
>
17
18
#ifdef USE_OPENSSL
19
#include <
openvpn/openssl/ssl/sslctx.hpp
>
20
#include <
openvpn/openssl/util/pem.hpp
>
21
#endif
22
23
#ifdef USE_MBEDTLS
24
#include <mbedtls/platform.h>
25
#include <mbedtls/debug.h>
// for debug_set_threshold
26
#include <
openvpn/mbedtls/crypto/api.hpp
>
27
#include <
openvpn/mbedtls/ssl/sslctx.hpp
>
28
#include <
openvpn/mbedtls/util/pem.hpp
>
29
#endif
30
31
namespace
openvpn::SSLLib
{
32
#ifdef USE_MBEDTLS
33
#define SSL_LIB_NAME "MbedTLS"
34
typedef
MbedTLSContext SSLAPI;
35
typedef
MbedTLSPEM PEMAPI;
36
#elif defined(USE_OPENSSL)
37
#define SSL_LIB_NAME "OpenSSL"
38
using
CryptoAPI = OpenSSLCryptoAPI;
39
using
SSLAPI = OpenSSLContext;
40
using
PEMAPI = OpenSSLPEM;
41
#else
42
#error no SSL library defined
43
#endif
44
}
// namespace openvpn::SSLLib
45
46
#endif
cryptochoose.hpp
definitions.hpp
api.hpp
sslctx.hpp
pem.hpp
openvpn::SSLLib
Definition
cryptochoose.hpp:32
sslctx.hpp
pem.hpp
openvpn
ssl
sslchoose.hpp
Generated by
1.9.8