s3:libsmb/smb_seal: make common_ntlm_[en|de]crypt_buffer static
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 13:32:14 +0000 (15:32 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 15:32:17 +0000 (17:32 +0200)
metze

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

index 8df3aab73601844f36501f178a0f68713ae4e7d6..d17d38aa8b96dc5bbbf35adad98a9a835ffb4d8e 100644 (file)
@@ -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);
index 1c7bec38890711bc22d3ae5922fa5c6983b57d13..c5541107ab923b0c0d2e44556223d2ab4bac8860 100644 (file)
@@ -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)