mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
added HTTP*Credentials::empty() and HTTP*Credentials::clear()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user