summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-19 15:33:16 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-19 17:32:23 +0200
commit1b9c8d4867aed7aa19fecba563957a0d99280ce9 (patch)
tree184243ef4c91e82a0893f8d34412fbb735168b5e /source3/include
parentbd8b2754ba2002b35815df986b29838ded8fb1da (diff)
downloadsamba-1b9c8d4867aed7aa19fecba563957a0d99280ce9.tar.gz
samba-1b9c8d4867aed7aa19fecba563957a0d99280ce9.tar.bz2
samba-1b9c8d4867aed7aa19fecba563957a0d99280ce9.zip
s3:include: move smb_seal.c prototypes to smb_crypt.h
metze
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_crypt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/smb_crypt.h b/source3/include/smb_crypt.h
index 4449a1605d..ed0063e2e2 100644
--- a/source3/include/smb_crypt.h
+++ b/source3/include/smb_crypt.h
@@ -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 */