added HTTP*Credentials::empty() and HTTP*Credentials::clear()

This commit is contained in:
Günter Obiltschnig
2019-06-04 18:33:50 +02:00
parent 86b448ecf5
commit 96a7263219
8 changed files with 107 additions and 28 deletions

View File

@@ -52,6 +52,14 @@ void HTTPNTLMCredentials::reset()
}
void HTTPNTLMCredentials::clear()
{
_username.clear();
_password.clear();
_host.clear();
}
void HTTPNTLMCredentials::setUsername(const std::string& username)
{
_username = username;
@@ -169,7 +177,7 @@ std::string HTTPNTLMCredentials::createNTLMMessage(const std::string& responseAu
}
else throw HTTPException("Invalid NTLM challenge");
}
return NTLMCredentials::toBase64(authenticateBuf);
return NTLMCredentials::toBase64(authenticateBuf);
}
}