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:
parent
37399af996
commit
a9ba0a4dff
10
httplib.h
10
httplib.h
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user