QAuthenticator: remove leftovers
At some point we stopped supporting "Plain", "CramMd5" and "Login" but their entries in the enum and a few lines of code related to them were left behind. Change-Id: Id8186c9a0760b3b2382544579aa1148ff8125ac4 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
01a359b53c
commit
8a1baaf336
@ -465,27 +465,12 @@ QByteArray QAuthenticatorPrivate::calculateResponse(const QByteArray &requestMet
|
||||
methodString = "";
|
||||
phase = Done;
|
||||
break;
|
||||
case QAuthenticatorPrivate::Plain:
|
||||
response = '\0' + user.toUtf8() + '\0' + password.toUtf8();
|
||||
phase = Done;
|
||||
break;
|
||||
case QAuthenticatorPrivate::Basic:
|
||||
methodString = "Basic ";
|
||||
response = user.toLatin1() + ':' + password.toLatin1();
|
||||
response = response.toBase64();
|
||||
phase = Done;
|
||||
break;
|
||||
case QAuthenticatorPrivate::Login:
|
||||
if (challenge.contains("VXNlciBOYW1lAA==")) {
|
||||
response = user.toUtf8().toBase64();
|
||||
phase = Phase2;
|
||||
} else if (challenge.contains("UGFzc3dvcmQA")) {
|
||||
response = password.toUtf8().toBase64();
|
||||
phase = Done;
|
||||
}
|
||||
break;
|
||||
case QAuthenticatorPrivate::CramMd5:
|
||||
break;
|
||||
case QAuthenticatorPrivate::DigestMd5:
|
||||
methodString = "Digest ";
|
||||
response = digestMd5Response(challenge, requestMethod, path);
|
||||
|
@ -68,7 +68,7 @@ class QNtlmWindowsHandles;
|
||||
class Q_AUTOTEST_EXPORT QAuthenticatorPrivate
|
||||
{
|
||||
public:
|
||||
enum Method { None, Basic, Plain, Login, Ntlm, CramMd5, DigestMd5 };
|
||||
enum Method { None, Basic, Ntlm, DigestMd5 };
|
||||
QAuthenticatorPrivate();
|
||||
~QAuthenticatorPrivate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user