OpenVPN 3 Core Library
Loading...
Searching...
No Matches
engineinit.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
// process-wide initialization for underlying cryptographic engines
13
14
#ifndef OPENVPN_INIT_ENGINEINIT_H
15
#define OPENVPN_INIT_ENGINEINIT_H
16
17
#include <string>
18
19
#include <
openvpn/common/arch.hpp
>
20
21
#if defined(USE_OPENSSL)
22
#include <
openvpn/openssl/util/engine.hpp
>
23
#include <
openvpn/openssl/ssl/sslctx.hpp
>
24
#endif
25
26
#if defined(USE_MINICRYPTO) && (defined(OPENVPN_ARCH_x86_64) || defined(OPENVPN_ARCH_i386))
27
extern
"C"
28
{
29
void
OPENSSL_cpuid_setup();
30
}
31
#endif
32
33
namespace
openvpn
{
34
35
inline
void
init_openssl
(
const
std::string &engine)
36
{
37
#if defined(USE_OPENSSL)
38
openssl_setup_engine
(engine);
39
OpenSSLContext::SSL::init_static
();
40
#elif defined(USE_MINICRYPTO) && (defined(OPENVPN_ARCH_x86_64) || defined(OPENVPN_ARCH_i386))
41
OPENSSL_cpuid_setup();
42
#endif
43
}
44
45
}
// namespace openvpn
46
#endif
arch.hpp
openvpn::OpenSSLContext::SSL::init_static
static void init_static()
Definition
sslctx.hpp:911
engine.hpp
openvpn
Support deferred server-side state creation when client connects.
Definition
ovpncli.cpp:95
openvpn::init_openssl
void init_openssl(const std::string &engine)
Definition
engineinit.hpp:35
openvpn::openssl_setup_engine
void openssl_setup_engine(const std::string &engine)
Definition
engine.hpp:34
sslctx.hpp
openvpn
init
engineinit.hpp
Generated by
1.9.8