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
20
21#if defined(USE_OPENSSL)
24#endif
25
26#if defined(USE_MINICRYPTO) && (defined(OPENVPN_ARCH_x86_64) || defined(OPENVPN_ARCH_i386))
27extern "C"
28{
29 void OPENSSL_cpuid_setup();
30}
31#endif
32
33namespace openvpn {
34
35inline void init_openssl(const std::string &engine)
36{
37#if defined(USE_OPENSSL)
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
Support deferred server-side state creation when client connects.
Definition ovpncli.cpp:95
void init_openssl(const std::string &engine)
void openssl_setup_engine(const std::string &engine)
Definition engine.hpp:34