s3-ntlmssp Remove references to auth_ntlmssp_context from the smb sealing code
[rusty/samba.git] / source3 / include / smb_crypt.h
index a5930d186d0b26824ba8cabe5a78b15cb23aa0b3..307e90e585cbaf56d04729e7b143f735a6e13ab7 100644 (file)
@@ -49,14 +49,23 @@ struct smb_tran_enc_state_gss {
 
 struct smb_trans_enc_state {
         enum smb_trans_enc_type smb_enc_type;
-        uint16 enc_ctx_num;
+        uint16_t enc_ctx_num;
         bool enc_on;
         union {
-                struct ntlmssp_state *ntlmssp_state;
+                struct gensec_security *gensec_security;
 #if defined(HAVE_GSSAPI) && defined(HAVE_KRB5)
                 struct smb_tran_enc_state_gss *gss_state;
 #endif
         } s;
 };
 
+/* The following definitions come from libsmb/smb_seal.c  */
+
+NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16_t *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 */