summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-15 16:05:45 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-15 17:51:59 +0200
commit4faad287783f9a7b22f3ff1d40c609e603a66709 (patch)
tree9a054d569368ed2e62e27c26a0217f00182e5cec /source3
parent28e3d099165ba64eb0987d74dd87816ad6207a6a (diff)
downloadsamba-4faad287783f9a7b22f3ff1d40c609e603a66709.tar.gz
samba-4faad287783f9a7b22f3ff1d40c609e603a66709.tar.bz2
samba-4faad287783f9a7b22f3ff1d40c609e603a66709.zip
s3:libsmb: remove unused cli_*encryption* functions
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 17:52:00 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/proto.h3
-rw-r--r--source3/libsmb/smb_seal.c45
2 files changed, 0 insertions, 48 deletions
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 469246e8ad..e0c8a67d66 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -859,9 +859,6 @@ NTSTATUS common_encrypt_buffer(struct smb_trans_enc_state *es, char *buffer, cha
NTSTATUS common_decrypt_buffer(struct smb_trans_enc_state *es, char *buf);
void common_free_encryption_state(struct smb_trans_enc_state **pp_es);
void common_free_enc_buffer(struct smb_trans_enc_state *es, char *buf);
-bool cli_encryption_on(struct cli_state *cli);
-void cli_free_encryption_context(struct cli_state *cli);
-void cli_free_enc_buffer(struct cli_state *cli, char *buf);
/* The following definitions come from libsmb/clisigning.c */
diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c
index fd9de1de8e..65ccdbbeab 100644
--- a/source3/libsmb/smb_seal.c
+++ b/source3/libsmb/smb_seal.c
@@ -422,48 +422,3 @@ void common_free_enc_buffer(struct smb_trans_enc_state *es, char *buf)
}
#endif
}
-
-/******************************************************************************
- Client side encryption.
-******************************************************************************/
-
-/******************************************************************************
- Is client encryption on ?
-******************************************************************************/
-
-bool cli_encryption_on(struct cli_state *cli)
-{
- /* If we supported multiple encrytion contexts
- * here we'd look up based on tid.
- */
- return common_encryption_on(cli->trans_enc_state);
-}
-
-/******************************************************************************
- Shutdown a client encryption state.
-******************************************************************************/
-
-void cli_free_encryption_context(struct cli_state *cli)
-{
- common_free_encryption_state(&cli->trans_enc_state);
-}
-
-/******************************************************************************
- Free an encryption-allocated buffer.
-******************************************************************************/
-
-void cli_free_enc_buffer(struct cli_state *cli, char *buf)
-{
- /* We know this is an smb buffer, and we
- * didn't malloc, only copy, for a keepalive,
- * so ignore non-session messages. */
-
- if(CVAL(buf,0)) {
- return;
- }
-
- /* If we supported multiple encrytion contexts
- * here we'd look up based on tid.
- */
- common_free_enc_buffer(cli->trans_enc_state, buf);
-}