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_APPLE_SSL
24// #include <openvpn/applecrypto/util/selftest.hpp>
25#endif
26
27#ifdef USE_MBEDTLS
29#endif
30
31#ifdef USE_MBEDTLS_APPLE_HYBRID
32// #include <openvpn/applecrypto/util/selftest.hpp>
34#endif
35
37inline std::string crypto_self_test()
38{
39 std::string ret;
40#ifdef USE_OPENSSL
41 // ret += crypto_self_test_openssl();
42#endif
43#ifdef USE_APPLE_SSL
44 // ret += crypto_self_test_apple();
45#endif
46#if defined(USE_MBEDTLS) || defined(USE_MBEDTLS_APPLE_HYBRID)
48#endif
49 return ret;
50}
51} // namespace openvpn::SelfTest
52
53#endif // OPENVPN_CRYPTO_CRYPTO_H
std::string crypto_self_test()
Definition selftest.hpp:37
std::string crypto_self_test_mbedtls()
Definition selftest.hpp:30
std::string ret