summaryrefslogtreecommitdiff
path: root/src/crypto-lib
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2016-11-22 23:35:43 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2016-11-23 14:37:59 +0000
commit914004b0d33e7b6e5ebaed8bae166095fa706c14 (patch)
treea58be74b40bd646542c3daaa84661f2b2a195e5f /src/crypto-lib
parent6106c4ecd8a2b1f5c69603302de195792a430479 (diff)
downloadqtapplicationmanager-914004b0d33e7b6e5ebaed8bae166095fa706c14.tar.gz
Prevent building against openssl 1.1, due to source incompatibility
Supporting openssl 1.1 needs a lot of work, since all the "old" function names are only supported via macros (that have to be enabled explicitly). Even that won't help us though, because we need real symbols to resolve them at runtime. Change-Id: Ic40c9cd21bf660e4c4b41fe0eef26d2ac8362865 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
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