Call SSL_COMP_free_compression_methods() on ssl cleanup.

This call is needed for OpenSSL >=1.0.2 and <1.1.0.
This commit is contained in:
Christopher Kohlhoff 2016-09-13 21:59:03 +10:00
parent 41cb2faa19
commit 2cde22623c

View File

@ -78,6 +78,11 @@ public:
#elif (OPENSSL_VERSION_NUMBER < 0x10100000L)
::ERR_remove_thread_state(NULL);
#endif // (OPENSSL_VERSION_NUMBER < 0x10000000L)
#if (OPENSSL_VERSION_NUMBER >= 0x10002000L) \
&& (OPENSSL_VERSION_NUMBER < 0x10100000L)
::SSL_COMP_free_compression_methods();
#endif // (OPENSSL_VERSION_NUMBER >= 0x10002000L)
// && (OPENSSL_VERSION_NUMBER < 0x10100000L)
#if !defined(OPENSSL_IS_BORINGSSL)
::CONF_modules_unload(1);
#endif // !defined(OPENSSL_IS_BORINGSSL)