lib: fix OpenSSL 1.1 deprecation warning for ERR_remove_state

ERR_remove_state has been marked deprecated in OpenSSL 1.1.0 and do
nothing, as the OpenSSL libraries now normally do all thread
initialization and deinitialisation automatically.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
pull/196/merge
Jelle van der Waa 9 years ago committed by Roger A. Light
parent b92ffec74e
commit ab266e7f5f

@ -114,7 +114,9 @@ void _mosquitto_net_init(void)
void _mosquitto_net_cleanup(void)
{
#ifdef WITH_TLS
ERR_remove_state(0);
#if OPENSSL_VERSION_NUMBER < 0x10100000L
ERR_remove_state(0);
#endif
ENGINE_cleanup();
CONF_modules_unload(1);
ERR_free_strings();

Loading…
Cancel
Save