@@ -73,7 +73,7 @@ static struct ASIO_SSL_memory_leak_suppress
73
73
{
74
74
~ASIO_SSL_memory_leak_suppress ()
75
75
{
76
- #if OPENSSL_VERSION_NUMBER < 0x10100000L
76
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
77
77
::SSL_COMP_free_compression_methods ();
78
78
#endif
79
79
}
@@ -210,7 +210,7 @@ class wspp_callback_client : public websocket_client_callback_impl, public std::
210
210
return rfc2818 (preverified, verifyCtx);
211
211
});
212
212
213
- #if OPENSSL_VERSION_NUMBER < 0x10100000L
213
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
214
214
// OpenSSL stores some per thread state that never will be cleaned up until
215
215
// the dll is unloaded. If static linking, like we do, the state isn't cleaned up
216
216
// at all and will be reported as leaks.
@@ -382,7 +382,7 @@ class wspp_callback_client : public websocket_client_callback_impl, public std::
382
382
crossplat::JVM.load ()->DetachCurrentThread ();
383
383
#endif
384
384
385
- #if OPENSSL_VERSION_NUMBER < 0x10100000L
385
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
386
386
// OpenSSL stores some per thread state that never will be cleaned up until
387
387
// the dll is unloaded. If static linking, like we do, the state isn't cleaned up
388
388
// at all and will be reported as leaks.
0 commit comments