From bd8b2754ba2002b35815df986b29838ded8fb1da Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 19 Oct 2011 15:32:14 +0200 Subject: [PATCH] s3:libsmb/smb_seal: make common_ntlm_[en|de]crypt_buffer static metze --- source3/libsmb/proto.h | 5 ----- source3/libsmb/smb_seal.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 8df3aab736..d17d38aa8b 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -852,11 +852,6 @@ NTSTATUS cli_trans(TALLOC_CTX *mem_ctx, struct cli_state *cli, NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16 *p_enc_ctx_num); bool common_encryption_on(struct smb_trans_enc_state *es); -NTSTATUS common_ntlm_decrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, char *buf); -NTSTATUS common_ntlm_encrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, - uint16 enc_ctx_num, - char *buf, - char **ppbuf_out); NTSTATUS common_encrypt_buffer(struct smb_trans_enc_state *es, char *buffer, char **buf_out); NTSTATUS common_decrypt_buffer(struct smb_trans_enc_state *es, char *buf); void common_free_encryption_state(struct smb_trans_enc_state **pp_es); diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c index 1c7bec3889..c5541107ab 100644 --- a/source3/libsmb/smb_seal.c +++ b/source3/libsmb/smb_seal.c @@ -64,7 +64,7 @@ bool common_encryption_on(struct smb_trans_enc_state *es) output, so cope with the same for compatibility. ******************************************************************************/ -NTSTATUS common_ntlm_decrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, char *buf) +static NTSTATUS common_ntlm_decrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, char *buf) { NTSTATUS status; size_t buf_len = smb_len(buf) + 4; /* Don't forget the 4 length bytes. */ @@ -112,7 +112,7 @@ NTSTATUS common_ntlm_decrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_stat output, so do the same for compatibility. ******************************************************************************/ -NTSTATUS common_ntlm_encrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, +static NTSTATUS common_ntlm_encrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state, uint16 enc_ctx_num, char *buf, char **ppbuf_out) -- 2.34.1