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>bb10
parent
287d2d7753
commit
b41a7afb00
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue