summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-19 15:32:14 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-19 17:32:17 +0200
commitbd8b2754ba2002b35815df986b29838ded8fb1da (patch)
tree53272a21d95c6367b9c59f4976e66070d889abc3 /source3
parentba08ad5f3942cbb6afb0b411dfd149fabd1954a6 (diff)
downloadsamba-bd8b2754ba2002b35815df986b29838ded8fb1da.tar.gz
samba-bd8b2754ba2002b35815df986b29838ded8fb1da.tar.bz2
samba-bd8b2754ba2002b35815df986b29838ded8fb1da.zip
s3:libsmb/smb_seal: make common_ntlm_[en|de]crypt_buffer static
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/proto.h5
-rw-r--r--source3/libsmb/smb_seal.c4
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)