OpenVPN 3 Core Library
Loading...
Searching...
No Matches
cryptoinit.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
#pragma once
13
14
#include <string>
15
16
#ifdef USE_OPENSSL
17
#include <
openvpn/openssl/util/init.hpp
>
18
#endif
19
20
namespace
openvpn
{
21
22
// process-wide initialization for crypto subsystem
23
class
crypto_init
24
{
25
#if defined(OPENSSL_NEEDS_INIT)
26
openssl_init openssl_init_;
27
#endif
28
/*
29
* We add a dummy member so this class does not count as trivial
30
* class. Otherwise it will trigger:
31
* warning: private field 'crypto_init_' is not used [-Wunused-private-field]
32
*/
33
std::string
dummy
;
34
};
35
36
}
// namespace openvpn
openvpn::crypto_init
Definition
cryptoinit.hpp:24
openvpn::crypto_init::dummy
std::string dummy
Definition
cryptoinit.hpp:33
init.hpp
openvpn
Definition
ovpncli.cpp:97
openvpn
init
cryptoinit.hpp
Generated by
1.9.8