1#if defined(HAVE_CONFIG_H)
12#include <openssl/opensslv.h>
13#if OPENSSL_VERSION_NUMBER < 0x1010100fL
14#error resip requires OpenSSL 1.1.1 or later
17#include <openssl/rand.h>
18#include <openssl/err.h>
19#include <openssl/crypto.h>
20#include <openssl/ssl.h>
22#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
30volatile bool OpenSSLInit::mInitialized =
false;
39OpenSSLInit::OpenSSLInit()
44#if defined(LIBRESSL_VERSION_NUMBER)
45 CRYPTO_malloc_debug_init();
46 CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL);
47#elif (OPENSSL_VERSION_NUMBER < 0x30000000L)
48 CRYPTO_set_mem_debug(1);
51#if (OPENSSL_VERSION_NUMBER < 0x30000000L) || defined(LIBRESSL_VERSION_NUMBER)
52 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
59OpenSSLInit::~OpenSSLInit()
static bool invokeOpenSSLInit
#define resip_assert(x)
This file needs to work for both C and C++ code.
dcm! – add UnusedChecking(_enum) below;