From 6391fff9dad8a2bd7033930e7d6ff5c8617701c6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 16 Dec 2011 16:07:24 +1100 Subject: s3-auth rename auth_ntlmssp_state -> auth_generic_state This structure handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/smbd/globals.h | 2 +- source3/smbd/negprot.c | 2 +- source3/smbd/seal.c | 2 +- source3/smbd/sesssetup.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 76172b08ba..02527e7453 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -411,7 +411,7 @@ struct smbd_smb2_session { struct smbd_server_connection *sconn; NTSTATUS status; uint64_t vuid; - struct auth_ntlmssp_state *auth_ntlmssp_state; + struct auth_generic_state *auth_ntlmssp_state; struct auth_session_info *session_info; DATA_BLOB session_key; bool do_signing; diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 0b5b810da9..f7d277be3a 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -199,7 +199,7 @@ DATA_BLOB negprot_spnego(TALLOC_CTX *ctx, struct smbd_server_connection *sconn) OID_NTLMSSP, NULL}; const char *OIDs_ntlm[] = {OID_NTLMSSP, NULL}; - struct auth_ntlmssp_state *auth_ntlmssp_state; + struct auth_generic_state *auth_ntlmssp_state; sconn->use_gensec_hook = false; diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c index 2c668dd7a0..ab87d76b26 100644 --- a/source3/smbd/seal.c +++ b/source3/smbd/seal.c @@ -79,7 +79,7 @@ bool is_encrypted_packet(struct smbd_server_connection *sconn, static NTSTATUS make_auth_ntlmssp(const struct tsocket_address *remote_address, struct smb_trans_enc_state *es) { - struct auth_ntlmssp_state *auth_ntlmssp_state; + struct auth_generic_state *auth_ntlmssp_state; NTSTATUS status = auth_ntlmssp_prepare(remote_address, &auth_ntlmssp_state); if (!NT_STATUS_IS_OK(status)) { diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 889361acb8..43ff13ec28 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -420,7 +420,7 @@ static void reply_spnego_kerberos(struct smb_request *req, static void reply_spnego_ntlmssp(struct smb_request *req, uint16 vuid, - struct auth_ntlmssp_state **auth_ntlmssp_state, + struct auth_generic_state **auth_ntlmssp_state, DATA_BLOB *ntlmssp_blob, NTSTATUS nt_status, const char *OID, bool wrap) @@ -578,7 +578,7 @@ static void reply_spnego_downgrade_to_ntlmssp(struct smb_request *req, static void reply_spnego_negotiate(struct smb_request *req, uint16 vuid, DATA_BLOB blob1, - struct auth_ntlmssp_state **auth_ntlmssp_state) + struct auth_generic_state **auth_ntlmssp_state) { DATA_BLOB secblob; DATA_BLOB chal; @@ -665,7 +665,7 @@ static void reply_spnego_negotiate(struct smb_request *req, static void reply_spnego_auth(struct smb_request *req, uint16 vuid, DATA_BLOB blob1, - struct auth_ntlmssp_state **auth_ntlmssp_state) + struct auth_generic_state **auth_ntlmssp_state) { DATA_BLOB auth = data_blob_null; DATA_BLOB auth_reply = data_blob_null; -- cgit