changeset 2270:512e69a0c761 Barnerd/fix-build-with-libressl-libressl-comp-1488028354841

Fix build with LibreSSL - LibreSSL completely removed FIPS Remove spurious space
author Bernard Spil <bitbucket@brnrd.eu>
date Sat, 25 Feb 2017 13:12:46 +0000
parents 8e53a2acdf21
children fc260803b5df c799d057aa0d
files Core/HttpClient.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpClient.cpp	Wed Feb 22 22:04:41 2017 +0100
+++ b/Core/HttpClient.cpp	Sat Feb 25 13:12:46 2017 +0000
@@ -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();