OpenVPN 3 Core Library
Loading...
Searching...
No Matches
selftest.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
// A general purpose container for OpenVPN protocol encrypt and decrypt objects.
13
14
#ifndef OPENVPN_CRYPTO_SELFTEST_H
15
#define OPENVPN_CRYPTO_SELFTEST_H
16
17
#include <string>
18
19
#ifdef USE_OPENSSL
20
// #include <openvpn/openssl/util/selftest.hpp>
21
#endif
22
23
#ifdef USE_MBEDTLS
24
#include <
openvpn/mbedtls/util/selftest.hpp
>
25
#endif
26
27
namespace
openvpn::SelfTest
{
28
inline
std::string
crypto_self_test
()
29
{
30
std::string ret;
31
#ifdef USE_OPENSSL
32
// ret += crypto_self_test_openssl();
33
#endif
34
#ifdef USE_MBEDTLS
35
ret +=
crypto_self_test_mbedtls
();
36
#endif
37
return
ret;
38
}
39
}
// namespace openvpn::SelfTest
40
41
#endif
// OPENVPN_CRYPTO_CRYPTO_H
selftest.hpp
openvpn::SelfTest
Definition
selftest.hpp:27
openvpn::SelfTest::crypto_self_test
std::string crypto_self_test()
Definition
selftest.hpp:28
openvpn::crypto_self_test_mbedtls
std::string crypto_self_test_mbedtls()
Definition
selftest.hpp:30
openvpn
crypto
selftest.hpp
Generated by
1.9.8