changeset 2272:0ad32aeae9f3 Barnerd/fix-build-with-libressl-completely-re-1488028252315

Fix build with LibreSSL - Completely removed FIPS methods
author Bernard Spil <bitbucket@brnrd.eu>
date Sat, 25 Feb 2017 13:11:03 +0000
parents 2fd8c1fa6076
children 1ca3c2065059 69cb535acda3
files OrthancServer/OrthancInitialization.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Thu Nov 17 09:30:22 2016 +0100
+++ b/OrthancServer/OrthancInitialization.cpp	Sat Feb 25 13:11:03 2017 +0000
@@ -534,7 +534,9 @@
 #if ORTHANC_SSL_ENABLED == 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();