mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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
This commit is contained in:
parent
28e3d09916
commit
4faad28778
@ -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 */
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user