Skip to content

Commit 609f150

Browse files
authored
deinit libressl (#314)
1 parent 00b79ae commit 609f150

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

trantor/net/inner/tlsprovider/OpenSSLProvider.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ static bool sslInitFlag = []() {
2626
SSL_load_error_strings();
2727
ERR_load_BIO_strings();
2828
ERR_load_crypto_strings();
29+
#elif defined(LIBRESSL_VERSION_NUMBER)
30+
// LibreSSL needs explicit de-init
31+
atexit(OPENSSL_cleanup);
2932
#endif
3033
return true;
3134
}();

0 commit comments

Comments
 (0)