Remove the cleanup functions with OpenSSL 1.1.
This commit is contained in:
parent
0af47a0b8d
commit
01c47d0622
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,7 @@ lws_ssl_destroy(struct lws_vhost *vhost)
|
|||
if (!vhost->user_supplied_ssl_ctx && vhost->ssl_client_ctx)
|
||||
SSL_CTX_free(vhost->ssl_client_ctx);
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100006L)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_WOLFSSL)
|
||||
ERR_remove_state(0);
|
||||
#else
|
||||
|
@ -210,6 +211,7 @@ lws_ssl_destroy(struct lws_vhost *vhost)
|
|||
CRYPTO_cleanup_all_ex_data();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
LWS_VISIBLE void
|
||||
|
@ -688,6 +690,7 @@ lws_ssl_context_destroy(struct lws_context *context)
|
|||
#else
|
||||
#if defined(LWS_USE_MBEDTLS)
|
||||
#else
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100006L)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_WOLFSSL)
|
||||
ERR_remove_state(0);
|
||||
#else
|
||||
|
@ -704,4 +707,5 @@ lws_ssl_context_destroy(struct lws_context *context)
|
|||
CRYPTO_cleanup_all_ex_data();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue