Skip to content

Commit

Permalink
Support ssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bshramin committed Jun 11, 2022
1 parent c45f4bb commit 57382f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*
!.gitignore
!.gitignore
6 changes: 5 additions & 1 deletion src/Transport/SSLWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ SSLWrapper::SSLWrapper()

SSLWrapper::~SSLWrapper()
{
FIPS_mode_set(0);
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
EVP_default_properties_enable_fips(nullptr, 0);
#else
FIPS_mode_set(0);
#endif
ENGINE_cleanup();
CONF_modules_unload(1);
EVP_cleanup();
Expand Down

0 comments on commit 57382f6

Please sign in to comment.