diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-03 16:33:44 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-24 11:23:18 +1100 |
commit | e3cebef0cf93ddade8e698ea292d2c03cf005a7b (patch) | |
tree | b100ab80d0f342a6a2ea7dbabce3248ce81ecaf9 /auth/ntlmssp | |
parent | 8a9b6fe26dc347afd6dc17570354e0af391b351d (diff) | |
download | samba-e3cebef0cf93ddade8e698ea292d2c03cf005a7b.tar.gz samba-e3cebef0cf93ddade8e698ea292d2c03cf005a7b.tar.bz2 samba-e3cebef0cf93ddade8e698ea292d2c03cf005a7b.zip |
auth: Rename some elements of auth4_context
These operate on NTLM authentication, so make that clear.
Andrew Bartlett
Diffstat (limited to 'auth/ntlmssp')
-rw-r--r-- | auth/ntlmssp/gensec_ntlmssp_server.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c index a1d43e6bca..ba32a2b1b0 100644 --- a/auth/ntlmssp/gensec_ntlmssp_server.c +++ b/auth/ntlmssp/gensec_ntlmssp_server.c @@ -90,8 +90,8 @@ static NTSTATUS auth_ntlmssp_get_challenge(const struct ntlmssp_state *ntlmssp_s struct auth4_context *auth_context = gensec_ntlmssp->gensec_security->auth_context; NTSTATUS status = NT_STATUS_NOT_IMPLEMENTED; - if (auth_context->get_challenge) { - status = auth_context->get_challenge(auth_context, chal); + if (auth_context->get_ntlm_challenge) { + status = auth_context->get_ntlm_challenge(auth_context, chal); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("auth_ntlmssp_get_challenge: failed to get challenge: %s\n", nt_errstr(status))); @@ -139,8 +139,8 @@ static NTSTATUS auth_ntlmssp_set_challenge(struct ntlmssp_state *ntlmssp_state, chal = challenge->data; - if (auth_context->set_challenge) { - nt_status = auth_context->set_challenge(auth_context, + if (auth_context->set_ntlm_challenge) { + nt_status = auth_context->set_ntlm_challenge(auth_context, chal, "NTLMSSP callback (NTLM2)"); } @@ -183,12 +183,12 @@ static NTSTATUS auth_ntlmssp_check_password(struct ntlmssp_state *ntlmssp_state, user_info->password.response.nt = ntlmssp_state->nt_resp; user_info->password.response.nt.data = talloc_steal(user_info, ntlmssp_state->nt_resp.data); - if (auth_context->check_password) { - nt_status = auth_context->check_password(auth_context, - gensec_ntlmssp, - user_info, - &gensec_ntlmssp->server_returned_info, - user_session_key, lm_session_key); + if (auth_context->check_ntlm_password) { + nt_status = auth_context->check_ntlm_password(auth_context, + gensec_ntlmssp, + user_info, + &gensec_ntlmssp->server_returned_info, + user_session_key, lm_session_key); } talloc_free(user_info); |