summaryrefslogtreecommitdiff
path: root/config.tests
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 /config.tests
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 'config.tests')
-rw-r--r--config.tests/libcrypto/libcrypto.pro2
-rw-r--r--config.tests/libcrypto/main.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/config.tests/libcrypto/libcrypto.pro b/config.tests/libcrypto/libcrypto.pro
index 43ef8a97..b113b4ec 100644
--- a/config.tests/libcrypto/libcrypto.pro
+++ b/config.tests/libcrypto/libcrypto.pro
@@ -4,7 +4,7 @@ CONFIG += console
SOURCES += main.cpp
-linux:packagesExist("'libcrypto >= 1.0.1'") {
+linux:packagesExist("'libcrypto >= 1.0.1 libcrypto < 1.1.0'") {
PKGCONFIG_INCLUDEPATH = $$system($$pkgConfigExecutable() --cflags-only-I libcrypto)
PKGCONFIG_INCLUDEPATH ~= s/^-I(.*)/\\1/g
INCLUDEPATH += $$PKGCONFIG_INCLUDEPATH
diff --git a/config.tests/libcrypto/main.cpp b/config.tests/libcrypto/main.cpp
index ff48e230..c47f0856 100644
--- a/config.tests/libcrypto/main.cpp
+++ b/config.tests/libcrypto/main.cpp
@@ -44,6 +44,9 @@
#if OPENSSL_VERSION_NUMBER-0 < 0x1000100fL
# error "OpenSSL < 1.0.1 is binary incompatible"
#endif
+#if OPENSSL_VERSION_NUMBER-0 >= 0x1010000fL
+# error "OpenSSL >= 1.1.0 is binary incompatible"
+#endif
int main()
{