Client: NTLMAuthenticationClient.GetAuthenticateMessage: Renamed variable

This commit is contained in:
Tal Aloni 2023-12-30 13:38:11 +02:00
parent 787df79c8d
commit 2b92e1b5f6

View file

@ -102,16 +102,16 @@ namespace SMBLibrary.Client.Authentication
challengeMessageBytes = securityBlob; challengeMessageBytes = securityBlob;
} }
byte[] authenticationMessageBytes = NTLMAuthenticationHelper.GetAuthenticateMessage(challengeMessageBytes, m_domainName, m_userName, m_password, m_spn, m_authenticationMethod, out m_sessionKey); byte[] authenticateMessageBytes = NTLMAuthenticationHelper.GetAuthenticateMessage(challengeMessageBytes, m_domainName, m_userName, m_password, m_spn, m_authenticationMethod, out m_sessionKey);
if (useGSSAPI && authenticationMessageBytes != null) if (useGSSAPI && authenticateMessageBytes != null)
{ {
SimpleProtectedNegotiationTokenResponse outputToken = new SimpleProtectedNegotiationTokenResponse(); SimpleProtectedNegotiationTokenResponse outputToken = new SimpleProtectedNegotiationTokenResponse();
outputToken.ResponseToken = authenticationMessageBytes; outputToken.ResponseToken = authenticateMessageBytes;
return outputToken.GetBytes(); return outputToken.GetBytes();
} }
else else
{ {
return authenticationMessageBytes; return authenticateMessageBytes;
} }
} }