summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-09-04 16:29:21 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-09-10 19:23:15 +0200
commitb41a7afb000bfd86eb98f1e9e1b2711d6c4fb104 (patch)
treebbb61a225608d624965c2b67593f751aa600d14b /src/network/kernel
parent287d2d7753bf354fea3bbf4dfa6d2f9653ac98b7 (diff)
QAuthenticator: Don't use Negotiate if unsupported
If we compiled without support for it then we shouldn't consider it an option either. Pick-to: 5.15 Change-Id: If6e0a6afa738f375e360bf3d439196b39e47bee8 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qauthenticator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index 1aeac6a589..1ac98602a2 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -441,8 +441,10 @@ void QAuthenticatorPrivate::parseHttpResponse(const QList<QPair<QByteArray, QByt
method = DigestMd5;
headerVal = current.second.mid(7);
} else if (method < Negotiate && str.startsWith("negotiate")) {
+#if QT_CONFIG(sspi) || QT_CONFIG(gssapi) // if it's not supported then we shouldn't try to use it
method = Negotiate;
headerVal = current.second.mid(10);
+#endif
}
}