Skip to content

Commit

Permalink
configure: inline openssl test sources
Browse files Browse the repository at this point in the history
Change-Id: I47c1c43b5db30cf1d59de9c6c20ca83abef2cf8c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
  • Loading branch information
ossilator committed Dec 19, 2018
1 parent 6b39d51 commit b6cd5fd
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 108 deletions.
54 changes: 0 additions & 54 deletions config.tests/openssl/openssl.cpp

This file was deleted.

1 change: 0 additions & 1 deletion config.tests/openssl/openssl.pro

This file was deleted.

48 changes: 0 additions & 48 deletions config.tests/unix/openssl11/openssl.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions config.tests/unix/openssl11/openssl.pro

This file was deleted.

26 changes: 23 additions & 3 deletions src/network/configure.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@
"openssl_headers": {
"label": "OpenSSL Headers",
"export": "openssl",
"test": "openssl",
"test": {
"tail": [
"#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10000000L",
"# error OpenSSL >= 1.0.0 is required",
"#endif",
"#if OPENSSL_VERSION_NUMBER-0 >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES)",
"# error OpenSSL was reported as >= 1.0.2 but is missing required features, possibly it's libressl which is unsupported",
"#endif"
]
},
"headers": [ "openssl/ssl.h", "openssl/opensslv.h" ],
"sources": [
{
"comment": "placeholder for OPENSSL_PATH",
Expand All @@ -67,7 +77,10 @@
},
"openssl": {
"label": "OpenSSL",
"test": "openssl",
"test": {
"inherit": "openssl_headers",
"main": "SSL_free(SSL_new(0));"
},
"sources": [
{ "type": "openssl" },
{
Expand Down Expand Up @@ -149,7 +162,14 @@
"openssl11": {
"label": "OpenSSL 1.1 support",
"type": "compile",
"test": "unix/openssl11",
"test": {
"include": "openssl/opensslv.h",
"tail": [
"#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10100000L",
"# error OpenSSL >= 1.1 is required",
"#endif"
]
},
"use": "openssl"
},
"dtls": {
Expand Down

0 comments on commit b6cd5fd

Please sign in to comment.