diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2020-09-04 16:29:21 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-09-10 21:23:18 +0000 |
commit | f922b7885eac7f4da986ed85c5bda5e257660cf2 (patch) | |
tree | c4e457c4c1c5245d6616c23c35674d107299c5dc /src/network | |
parent | 05690d505e58b1304b4b790225a2c87a874767d9 (diff) |
QAuthenticator: Don't use Negotiate if unsupported
If we compiled without support for it then we shouldn't consider it an
option either.
Change-Id: If6e0a6afa738f375e360bf3d439196b39e47bee8
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit b41a7afb000bfd86eb98f1e9e1b2711d6c4fb104)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 2 |
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 } } |