ERR_remove_state is deprecated, use ERR_remove_thread_state instead.

This commit is contained in:
Christopher Kohlhoff 2015-03-20 08:46:51 +11:00
parent 8815161b24
commit 628e3ca9fe

View File

@ -63,7 +63,11 @@ public:
::CRYPTO_set_id_callback(0);
::CRYPTO_set_locking_callback(0);
::ERR_free_strings();
#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
::ERR_remove_thread_state(NULL);
#else // (OPENSSL_VERSION_NUMBER >= 0x10000000L)
::ERR_remove_state(0);
#endif // (OPENSSL_VERSION_NUMBER >= 0x10000000L)
::EVP_cleanup();
::CRYPTO_cleanup_all_ex_data();
::CONF_modules_unload(1);