# HG changeset patch # User Sébastien Jodogne # Date 1488270517 0 # Node ID fc260803b5df31f6760c09c0f9bda4f8b1bd4ad0 # Parent 8e53a2acdf21bfc8672e50346611795cac663efd# Parent 512e69a0c7611c24c7c1abc42772ea505fe434b0 Merged in Barnerd/orthanc-1/Barnerd/fix-build-with-libressl-libressl-comp-1488028354841 (pull request #5) Fix build with LibreSSL diff -r 8e53a2acdf21 -r fc260803b5df Core/HttpClient.cpp --- a/Core/HttpClient.cpp Wed Feb 22 22:04:41 2017 +0100 +++ b/Core/HttpClient.cpp Tue Feb 28 08:28:37 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();