diff options
author | thegeorg <thegeorg@yandex-team.com> | 2025-05-27 23:00:31 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2025-05-27 23:17:58 +0300 |
commit | 248adb61e7a0d0e196c1f7a433d879e2a0802983 (patch) | |
tree | d10a382f72e8eee76b5b86f965d84f623785c6db /library/cpp/neh/https.cpp | |
parent | cc7006763c2335afaed9b76e4273339f91ed43cc (diff) | |
download | ydb-248adb61e7a0d0e196c1f7a433d879e2a0802983.tar.gz |
Do not de-initialize openssl to avoid races
Initialize openssl in pre-main (by the means of `SRCS GLOBAL`) to reduce chance of concurrent initialization with different flags.
Do not de-initialize openssl to avoid races during `atexit` cleanup.
It looks like `OPENSSL_cleanup()` does nothing in case of static linkage (according to ASan report).
commit_hash:7d4bf183233970cc1772b1b8f2745044cc645c29
Diffstat (limited to 'library/cpp/neh/https.cpp')
-rw-r--r-- | library/cpp/neh/https.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/cpp/neh/https.cpp b/library/cpp/neh/https.cpp index 99db8a44cc2..e14dcf86679 100644 --- a/library/cpp/neh/https.cpp +++ b/library/cpp/neh/https.cpp @@ -13,7 +13,6 @@ #include <openssl/err.h> #include <openssl/x509v3.h> -#include <library/cpp/openssl/init/init.h> #include <library/cpp/openssl/method/io.h> #include <library/cpp/coroutine/listener/listen.h> #include <library/cpp/dns/cache.h> @@ -358,12 +357,6 @@ namespace NNeh { } } } - - struct TSSLInit { - inline TSSLInit() { - InitOpenSSL(); - } - } SSL_INIT; } static inline void PrepareSocket(SOCKET s) { |