summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2019-09-30 16:56:01 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2019-10-03 08:55:01 +0200
commit1a8f4a3c8fa30265e7f184373c738dbc3574663a (patch)
tree3fb106e1a5e9df7680c089af0d7cf1d7e37d21cd /src
parentad86c2f0abb4fab5bf871fe49b37e0a2f4a346bc (diff)
GSSAPI: strengthen configure test and make it a library
This way we can actually filter out times in sitatuations where it proved to not be available and as a library we can simply "use" it. Added in the pkgConfig source as well to make sure we can pick it up on systems where it has a different name. Fixes: QTBUG-78765 Change-Id: I4754923ddafd9274105e4f93d66a4039872e310c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: André Klitzing <aklitzing@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/network/configure.json25
-rw-r--r--src/network/kernel/kernel.pri2
2 files changed, 16 insertions, 11 deletions
diff --git a/src/network/configure.json b/src/network/configure.json
index bebe592088..a1cb77b6d1 100644
--- a/src/network/configure.json
+++ b/src/network/configure.json
@@ -98,6 +98,20 @@
"condition": "!config.msvc"
}
]
+ },
+ "gssapi": {
+ "label": "KRB5 GSSAPI Support",
+ "test": {
+ "main": [
+ "gss_ctx_id_t ctx;",
+ "gss_context_time(nullptr, ctx, nullptr);"
+ ]
+ },
+ "headers": [ "gssapi/gssapi.h" ],
+ "sources": [
+ { "type": "pkgConfig", "args": "krb5-gssapi" },
+ "-lgssapi_krb5"
+ ]
}
},
@@ -200,15 +214,6 @@
},
"use": "openssl"
},
- "gssapi": {
- "label": "KRB5 GSSAPI support",
- "type": "compile",
- "test": {
- "include": [ "gssapi/gssapi.h" ],
- "main": ["gss_ctx_id_t ctx;"],
- "qmake": "LIBS += -lgssapi_krb5"
- }
- },
"netlistmgr": {
"label": "Network List Manager",
"type": "compile",
@@ -408,7 +413,7 @@
"label": "GSSAPI",
"purpose": "Enable SPNEGO authentication through GSSAPI",
"section": "Networking",
- "condition": "!config.win32 && tests.gssapi",
+ "condition": "!config.win32 && libs.gssapi",
"output": [ "publicFeature", "feature" ]
},
"sspi": {
diff --git a/src/network/kernel/kernel.pri b/src/network/kernel/kernel.pri
index a55648dbc7..110d9f56bf 100644
--- a/src/network/kernel/kernel.pri
+++ b/src/network/kernel/kernel.pri
@@ -83,7 +83,7 @@ macos | ios {
SOURCES += kernel/qnetconmonitor_stub.cpp
}
-qtConfig(gssapi): LIBS_PRIVATE += -lgssapi_krb5
+qtConfig(gssapi): QMAKE_USE_PRIVATE += gssapi
uikit:HEADERS += kernel/qnetworkinterface_uikit_p.h
osx:SOURCES += kernel/qnetworkproxy_mac.cpp