Fix build with OPENSSL_NO_ENGINE

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
This commit is contained in:
Fredrik Fornwall
2018-09-18 15:02:32 +01:00
committed by Roger Light
parent ae45bd3d40
commit 915e91d9be
+3 -1
View File
@@ -103,7 +103,9 @@ void net__cleanup(void)
#if OPENSSL_VERSION_NUMBER < 0x10100000L
ERR_remove_state(0);
#endif
ENGINE_cleanup();
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
#endif
CONF_modules_unload(1);
ERR_free_strings();
EVP_cleanup();