aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/openssl/init/init.cpp
blob: 9a4e285ea350af0eb274402b7ec7f0f356947ac3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);
}

void InitOpenSSL() {
}