From 41ed715d42434c5eba2fc4cd9fe267c5179330da Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 14 Jan 2012 12:00:53 +1100 Subject: s3-libsmb: use struct gensec_security directly This is rather than via a now one-element union. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- libcli/smb/smb_seal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libcli/smb/smb_seal.c') diff --git a/libcli/smb/smb_seal.c b/libcli/smb/smb_seal.c index 669b69ae00..a56dc6092e 100644 --- a/libcli/smb/smb_seal.c +++ b/libcli/smb/smb_seal.c @@ -180,7 +180,7 @@ NTSTATUS common_encrypt_buffer(struct smb_trans_enc_state *es, char *buffer, cha return NT_STATUS_OK; } - return common_gensec_encrypt_buffer(es->s.gensec_security, es->enc_ctx_num, buffer, buf_out); + return common_gensec_encrypt_buffer(es->gensec_security, es->enc_ctx_num, buffer, buf_out); } /****************************************************************************** @@ -196,7 +196,7 @@ NTSTATUS common_decrypt_buffer(struct smb_trans_enc_state *es, char *buf) return NT_STATUS_OK; } - return common_gensec_decrypt_buffer(es->s.gensec_security, buf); + return common_gensec_decrypt_buffer(es->gensec_security, buf); } /****************************************************************************** @@ -211,8 +211,8 @@ void common_free_encryption_state(struct smb_trans_enc_state **pp_es) return; } - if (es->s.gensec_security) { - TALLOC_FREE(es->s.gensec_security); + if (es->gensec_security) { + TALLOC_FREE(es->gensec_security); } SAFE_FREE(es); *pp_es = NULL; -- cgit