summaryrefslogtreecommitdiff
path: root/libcli/smb/smb_seal.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-14 15:30:34 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-31 20:17:10 +0100
commit5ad7665b6377768d3710b00b25aeb530131924cc (patch)
tree919dd4b84e1772ab8e77a222e29d4948c1cb85e2 /libcli/smb/smb_seal.c
parentfce53e0e794f38782092be3433608772f5be7f2b (diff)
downloadsamba-5ad7665b6377768d3710b00b25aeb530131924cc.tar.gz
samba-5ad7665b6377768d3710b00b25aeb530131924cc.tar.bz2
samba-5ad7665b6377768d3710b00b25aeb530131924cc.zip
libcli/smb: Convert struct smb_trans_enc_state to talloc
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'libcli/smb/smb_seal.c')
-rw-r--r--libcli/smb/smb_seal.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libcli/smb/smb_seal.c b/libcli/smb/smb_seal.c
index a56dc6092e..d5bb2388bb 100644
--- a/libcli/smb/smb_seal.c
+++ b/libcli/smb/smb_seal.c
@@ -200,25 +200,6 @@ NTSTATUS common_decrypt_buffer(struct smb_trans_enc_state *es, char *buf)
}
/******************************************************************************
- Shutdown an encryption state.
-******************************************************************************/
-
-void common_free_encryption_state(struct smb_trans_enc_state **pp_es)
-{
- struct smb_trans_enc_state *es = *pp_es;
-
- if (es == NULL) {
- return;
- }
-
- if (es->gensec_security) {
- TALLOC_FREE(es->gensec_security);
- }
- SAFE_FREE(es);
- *pp_es = NULL;
-}
-
-/******************************************************************************
Free an encryption-allocated buffer.
******************************************************************************/