mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fix #128
This commit is contained in:
parent
3a3b02e2e5
commit
7b3f6db70b
@ -69,6 +69,7 @@ typedef int socket_t;
|
|||||||
|
|
||||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
|
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
|
||||||
@ -2368,6 +2369,10 @@ public:
|
|||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~SSLInit() {
|
||||||
|
ERR_free_strings();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static SSLInit sslinit_;
|
static SSLInit sslinit_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user