comparison Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake @ 3802:6462ecaa045b

fix unit test, reorganization of OpenSSL initialization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 Apr 2020 12:54:45 +0200
parents 7b7ca203f1a3
children e9834343d327
comparison
equal deleted inserted replaced
3801:9fe1d64a748c 3802:6462ecaa045b
232 232
233 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") 233 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
234 # In order for "crypto/mem_sec.c" to compile on LSB 234 # In order for "crypto/mem_sec.c" to compile on LSB
235 add_definitions( 235 add_definitions(
236 -DOPENSSL_NO_SECURE_MEMORY 236 -DOPENSSL_NO_SECURE_MEMORY
237 -DOPENSSL_RAND_SEED_OS
238 )
239
240 else()
241 # Fixes error "OpenSSL error: error:2406C06E:random number
242 # generator:RAND_DRBG_instantiate:error retrieving entropy" that was
243 # present in Orthanc 1.6.0, if statically linking on Ubuntu 18.04
244 add_definitions(
245 -DOPENSSL_RAND_SEED_OS
237 ) 246 )
238 endif() 247 endif()
239 248
240 249
241 set_source_files_properties( 250 set_source_files_properties(