1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Merge PR #582: Encrypt.c: check whether OpenSSL compression and FIPS features are available

This commit is contained in:
Davide Beatrici 2018-07-27 08:40:15 +02:00 committed by GitHub
commit 110f2291a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3679,7 +3679,9 @@ void FreeCryptLibrary()
// RAND_Free_For_SoftEther();
OpenSSL_FreeLock();
#ifdef OPENSSL_FIPS
FIPS_mode_set(0);
#endif
ENGINE_cleanup();
CONF_modules_unload(1);
EVP_cleanup();
@ -3688,7 +3690,9 @@ void FreeCryptLibrary()
ERR_free_strings();
#ifndef OPENSSL_NO_COMP
SSL_COMP_free_compression_methods();
#endif
}
// Initialize the Crypt library