summaryrefslogtreecommitdiff
path: root/src/crypto-lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto-lib')
-rw-r--r--src/crypto-lib/libcryptofunction.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crypto-lib/libcryptofunction.cpp b/src/crypto-lib/libcryptofunction.cpp
index 57c60e46..fcbe5fce 100644
--- a/src/crypto-lib/libcryptofunction.cpp
+++ b/src/crypto-lib/libcryptofunction.cpp
@@ -51,11 +51,18 @@
// we want at least openssl 1.0.1
#define AM_MINIMUM_OPENSSL_VERSION 0x1000100fL
+// we want at most openssl 1.0.255
+#define AM_MAXIMUM_OPENSSL_VERSION 0x100ff00fL
#if OPENSSL_VERSION_NUMBER < AM_MINIMUM_OPENSSL_VERSION
# error "Your OpenSSL version is too old - the minimum supported version is 1.0.1"
#endif
+#if OPENSSL_VERSION_NUMBER > AM_MAXIMUM_OPENSSL_VERSION
+# error "Your OpenSSL version is too new - 1.1.x headers are incompatible with 1.0.1"
+#endif
+
+
QT_BEGIN_NAMESPACE_AM
// clazy:excludeall=non-pod-global-static