blob: b7203e4d9bb0f30b0f4b652e97f69ee78ac9ca66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <openssl/crypto.h>
namespace {
// Initialize OpenSSL as early as possible
// in order to prevent any further initializations with different flags.
//
// Initialize it with OPENSSL_INIT_NO_ATEXIT thus omitting the cleanup routine at process exit
// (it looks like it does nothing when openssl is linked statically).
[[maybe_unused]] auto _ = OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_NO_ATEXIT, nullptr);
}
|