s3:include: move smb_seal.c prototypes to smb_crypt.h
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 13:33:16 +0000 (15:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 15:32:23 +0000 (17:32 +0200)
metze

source3/include/smb_crypt.h
source3/libsmb/clientgen.c
source3/libsmb/proto.h

index 4449a1605df449546ee804646c37cf113ae0d057..ed0063e2e2559e8d5473ae38487cb60cf3d113a7 100644 (file)
@@ -59,4 +59,13 @@ struct smb_trans_enc_state {
         } s;
 };
 
+/* The following definitions come from libsmb/smb_seal.c  */
+
+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_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);
+void common_free_enc_buffer(struct smb_trans_enc_state *es, char *buf);
+
 #endif /* _HEADER_SMB_CRYPT_H */
index 1fae2642ba8db512142d7fae37d6c58e5bee29ad..e8f4fbd2fc3975597fc2617d09eb8ca3e3accdd3 100644 (file)
@@ -22,6 +22,7 @@
 #include "libsmb/libsmb.h"
 #include "../lib/util/tevent_ntstatus.h"
 #include "smb_signing.h"
+#include "smb_crypt.h"
 #include "async_smb.h"
 
 /*******************************************************************
index d17d38aa8b96dc5bbbf35adad98a9a835ffb4d8e..ffb2ca0117371a91c4ada4ad0dde56f189c0fabf 100644 (file)
@@ -848,15 +848,6 @@ NTSTATUS cli_trans(TALLOC_CTX *mem_ctx, struct cli_state *cli,
                   uint8_t **rparam, uint32_t min_rparam, uint32_t *num_rparam,
                   uint8_t **rdata, uint32_t min_rdata, uint32_t *num_rdata);
 
-/* The following definitions come from libsmb/smb_seal.c  */
-
-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_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);
-void common_free_enc_buffer(struct smb_trans_enc_state *es, char *buf);
-
 /* The following definitions come from libsmb/clisigning.c  */
 
 bool cli_simple_set_signing(struct cli_state *cli,