OpenVPN 3 Core Library
Loading...
Searching...
No Matches
definitions.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#ifdef USE_OPENSSL
15#include <openssl/opensslv.h>
16#include <openssl/crypto.h>
17#endif
18
19/* We need to define this very early and in its own small header file so we
20 * can ensure that these definitions are always available */
21namespace openvpn::SSLLib {
22
23#if defined(USE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x30000000L
24using Ctx = OSSL_LIB_CTX *;
25#else
26using Ctx = void *;
27#endif
28
29} // namespace openvpn::SSLLib