Skip to content

Commit a9ba0a4

Browse files
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."
1 parent 37399af commit a9ba0a4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

httplib.h

-10
Original file line numberDiff line numberDiff line change
@@ -9063,14 +9063,6 @@ inline bool process_client_socket_ssl(
90639063
return callback(strm);
90649064
}
90659065

9066-
class SSLInit {
9067-
public:
9068-
SSLInit() {
9069-
OPENSSL_init_ssl(
9070-
OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
9071-
}
9072-
};
9073-
90749066
// SSL socket stream implementation
90759067
inline SSLSocketStream::SSLSocketStream(
90769068
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 {
91919183
.count();
91929184
}
91939185

9194-
static SSLInit sslinit_;
9195-
91969186
} // namespace detail
91979187

91989188
// SSL HTTP server implementation

0 commit comments

Comments
 (0)