Fix openssl deprecated warnings.

pull/1229/head
Roger A. Light 7 years ago
parent 7207041428
commit 988554e7f0

@ -87,7 +87,7 @@ int net__init(void)
#endif
#ifdef WITH_TLS
# if OPENSSL_VERSION_NUMBER < 0x10100000L || OPENSSL_API_COMPAT < 0x10100000L
# if OPENSSL_VERSION_NUMBER < 0x10100000L
SSL_load_error_strings();
SSL_library_init();
OpenSSL_add_all_algorithms();
@ -102,10 +102,10 @@ int net__init(void)
void net__cleanup(void)
{
#ifdef WITH_TLS
# if OPENSSL_VERSION_NUMBER < 0x10100000L || OPENSSL_API_COMPAT < 0x10100000L
# if OPENSSL_VERSION_NUMBER < 0x10100000L
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();
ERR_remove_state(0);
ERR_remove_thread_state(NULL);
EVP_cleanup();
# if !defined(OPENSSL_NO_ENGINE)

Loading…
Cancel
Save