summaryrefslogtreecommitdiffstats
path: root/tqca-tls.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-15 03:11:52 +0200
committerSlávek Banko <[email protected]>2020-05-15 03:11:52 +0200
commit8906dfbea322cdb18e5cfe265dc92b40ec47770f (patch)
tree7167049e7009d5d960797a8fb09f640bc57d9cd7 /tqca-tls.cpp
parenta2c0e6c98197215ac788982fbf5b236888eef79e (diff)
downloadtqca-tls-8906dfbea322cdb18e5cfe265dc92b40ec47770f.tar.gz
tqca-tls-8906dfbea322cdb18e5cfe265dc92b40ec47770f.zip
Move the OpenSSL 0.97 test inside the source code
instead of using the hard-coded definition. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tqca-tls.cpp')
-rw-r--r--tqca-tls.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tqca-tls.cpp b/tqca-tls.cpp
index df9eff1..e17f649 100644
--- a/tqca-tls.cpp
+++ b/tqca-tls.cpp
@@ -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