This commit is contained in:
yhirose committed 2019-02-22 08:52:38 -05:00
1 parent 3a3b02e2e5
commit 7b3f6db70b
1 file changed
+5
+5
View File
@@ -69,6 +69,7 @@ typedef int socket_t;
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
#include <openssl/ssl.h>
#include <openssl/err.h>
#endif
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
@@ -2368,6 +2369,10 @@ public:
SSL_load_error_strings();
SSL_library_init();
}
~SSLInit() {
ERR_free_strings();
}
};
static SSLInit sslinit_;