1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 11:29:53 +03:00

fix missing openssl feature checks

* add OPENSSL_FIPS feature check

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
Andy Walsh 2018-07-26 12:52:39 +02:00
parent be0e3cfb61
commit ed5ae4a8fe

View File

@ -3679,7 +3679,9 @@ void FreeCryptLibrary()
// RAND_Free_For_SoftEther(); // RAND_Free_For_SoftEther();
OpenSSL_FreeLock(); OpenSSL_FreeLock();
#ifdef OPENSSL_FIPS
FIPS_mode_set(0); FIPS_mode_set(0);
#endif
ENGINE_cleanup(); ENGINE_cleanup();
CONF_modules_unload(1); CONF_modules_unload(1);
EVP_cleanup(); EVP_cleanup();