diff Resources/Orthanc/Core/HttpClient.cpp @ 42:81e2651dca17

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Apr 2017 12:03:25 +0200
parents 7207a407bcd8
children
line wrap: on
line diff
--- a/Resources/Orthanc/Core/HttpClient.cpp	Wed Mar 22 15:57:24 2017 +0100
+++ b/Resources/Orthanc/Core/HttpClient.cpp	Fri Apr 14 12:03:25 2017 +0200
@@ -823,10 +823,12 @@
 
   void HttpClient::FinalizeOpenSsl()
   {
- #if ORTHANC_ENABLE_SSL == 1
+#if ORTHANC_ENABLE_SSL == 1
     // Finalize OpenSSL
     // https://wiki.openssl.org/index.php/Library_Initialization#Cleanup
+#ifdef FIPS_mode_set
     FIPS_mode_set(0);
+#endif
     ENGINE_cleanup();
     CONF_modules_unload(1);
     EVP_cleanup();