As suggested by svetlin-mladenov here
https://github.com/warmcat/libwebsockets/issues/186
Signed-off-by: Andy Green <andy.green@linaro.org>
if (!context->user_supplied_ssl_ctx && context->ssl_client_ctx)
SSL_CTX_free(context->ssl_client_ctx);
- ERR_remove_state(0);
+ ERR_remove_thread_state(NULL);
ERR_free_strings();
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
if (!context->user_supplied_ssl_ctx && context->ssl_client_ctx)
SSL_CTX_free(context->ssl_client_ctx);
- ERR_remove_state(0);
+ ERR_remove_thread_state(NULL);
ERR_free_strings();
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();