mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge PR #582: Encrypt.c: check whether OpenSSL compression and FIPS features are available
This commit is contained in:
commit
110f2291a2
@ -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();
|
||||||
@ -3688,7 +3690,9 @@ void FreeCryptLibrary()
|
|||||||
|
|
||||||
ERR_free_strings();
|
ERR_free_strings();
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
SSL_COMP_free_compression_methods();
|
SSL_COMP_free_compression_methods();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the Crypt library
|
// Initialize the Crypt library
|
||||||
|
Loading…
Reference in New Issue
Block a user