s3:libsmb: remove unused cli_*encryption* functions
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Sep 2011 14:05:45 +0000 (16:05 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Sep 2011 15:51:59 +0000 (17:51 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 15 17:52:00 CEST 2011 on sn-devel-104

source3/libsmb/proto.h
source3/libsmb/smb_seal.c

index 469246e8adbd62f0835622afbb9a1d0059144f1a..e0c8a67d6699f0031051682aef50ed98cfde016d 100644 (file)
@@ -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  */
 
index fd9de1de8ed2f86c6c1589400c5078231af65419..65ccdbbeab3bbb1294acb7b4e06ded69439c8af1 100644 (file)
@@ -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);
-}