Browse Source

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."
Florian Albrechtskirchinger 9 months ago
parent
commit
a9ba0a4dff
1 changed files with 0 additions and 10 deletions
  1. 0 10
      httplib.h

+ 0 - 10
httplib.h

@@ -9063,14 +9063,6 @@ inline bool process_client_socket_ssl(
   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
 inline SSLSocketStream::SSLSocketStream(
     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();
 }
 
-static SSLInit sslinit_;
-
 } // namespace detail
 
 // SSL HTTP server implementation