Commit 6ae71d31 authored by Asanka Herath's avatar Asanka Herath Committed by Commit Bot

[net/auth] Remove non-effective method.

Removes some no-op code.

Bug: 927182
Change-Id: I295a0e9f3b166a1c204d053af9f86acb3917a5b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938710Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Asanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719720}
parent 42babdeb
...@@ -131,10 +131,6 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerNTLM : public HttpAuthHandler { ...@@ -131,10 +131,6 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerNTLM : public HttpAuthHandler {
bool AllowsDefaultCredentials() override; bool AllowsDefaultCredentials() override;
protected: protected:
// This function acquires a credentials handle in the SSPI implementation.
// It does nothing in the portable implementation.
int InitializeBeforeFirstChallenge();
// HttpAuthHandler // HttpAuthHandler
bool Init(HttpAuthChallengeTokenizer* tok, const SSLInfo& ssl_info) override; bool Init(HttpAuthChallengeTokenizer* tok, const SSLInfo& ssl_info) override;
int GenerateAuthTokenImpl(const AuthCredentials* credentials, int GenerateAuthTokenImpl(const AuthCredentials* credentials,
......
...@@ -89,10 +89,6 @@ bool HttpAuthHandlerNTLM::AllowsDefaultCredentials() { ...@@ -89,10 +89,6 @@ bool HttpAuthHandlerNTLM::AllowsDefaultCredentials() {
return false; return false;
} }
int HttpAuthHandlerNTLM::InitializeBeforeFirstChallenge() {
return OK;
}
int HttpAuthHandlerNTLM::GenerateAuthTokenImpl( int HttpAuthHandlerNTLM::GenerateAuthTokenImpl(
const AuthCredentials* credentials, const AuthCredentials* credentials,
const HttpRequestInfo* request, const HttpRequestInfo* request,
...@@ -120,14 +116,6 @@ int HttpAuthHandlerNTLM::GenerateAuthTokenImpl( ...@@ -120,14 +116,6 @@ int HttpAuthHandlerNTLM::GenerateAuthTokenImpl(
domain_ = domain; domain_ = domain;
credentials_.Set(user, credentials->password()); credentials_.Set(user, credentials->password());
if (challenge_token_.empty()) {
// There is no |challenge_token_| because the client sends the first
// message.
int rv = InitializeBeforeFirstChallenge();
if (rv != OK)
return rv;
}
std::vector<uint8_t> next_token = std::vector<uint8_t> next_token =
GetNextToken(base::as_bytes(base::make_span(challenge_token_))); GetNextToken(base::as_bytes(base::make_span(challenge_token_)));
if (next_token.empty()) if (next_token.empty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment