1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Remove SSLInit (#2102)

Quote: "As of version 1.1.0 OpenSSL will automatically allocate all
resources that it needs so no explicit initialisation is required."
This commit is contained in:
Florian Albrechtskirchinger 2025-03-12 17:10:02 +01:00 committed by GitHub
parent 37399af996
commit a9ba0a4dff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9063,14 +9063,6 @@ inline bool process_client_socket_ssl(
return callback(strm); return callback(strm);
} }
class SSLInit {
public:
SSLInit() {
OPENSSL_init_ssl(
OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
}
};
// SSL socket stream implementation // SSL socket stream implementation
inline SSLSocketStream::SSLSocketStream( inline SSLSocketStream::SSLSocketStream(
socket_t sock, SSL *ssl, time_t read_timeout_sec, time_t read_timeout_usec, socket_t sock, SSL *ssl, time_t read_timeout_sec, time_t read_timeout_usec,
@ -9191,8 +9183,6 @@ inline time_t SSLSocketStream::duration() const {
.count(); .count();
} }
static SSLInit sslinit_;
} // namespace detail } // namespace detail
// SSL HTTP server implementation // SSL HTTP server implementation