Move the OpenSSL 0.97 test inside the source code

instead of using the hard-coded definition.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 4 years ago
parent a2c0e6c981
commit 8906dfbea3
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -52,7 +52,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -DOSSL_097 -DTQCA_PLUGIN )
add_definitions( -DHAVE_CONFIG_H -DTQCA_PLUGIN )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )

@ -34,6 +34,10 @@
#include <openssl/err.h>
#include <openssl/rand.h>
#if OPENSSL_VERSION_NUMBER >= 0x00907000
#define OSSL_097
#endif
#ifndef OSSL_097
#define NO_AES
#endif

Loading…
Cancel
Save