summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-09 14:38:35 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:56 +0100
commit9f895ea236fb2e6a5ed93656f75ea853f20fd102 (patch)
treeb4d939f5d050a753d01c381f93f7b2369c8f6af7 /source3/include
parent8804dc13281acf7839762c9cfb5fb9cafd0ba6a0 (diff)
downloadsamba-9f895ea236fb2e6a5ed93656f75ea853f20fd102.tar.gz
samba-9f895ea236fb2e6a5ed93656f75ea853f20fd102.tar.bz2
samba-9f895ea236fb2e6a5ed93656f75ea853f20fd102.zip
s3:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ntlmssp.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h
index d44df162d8..8774a0b1a9 100644
--- a/source3/include/ntlmssp.h
+++ b/source3/include/ntlmssp.h
@@ -42,6 +42,8 @@ enum ntlmssp_message_type
#define NTLMSSP_FEATURE_SEAL 0x00000004
#define NTLMSSP_FEATURE_CCACHE 0x00000008
+union ntlmssp_crypt_state;
+
struct ntlmssp_state
{
enum ntlmssp_role role;
@@ -128,18 +130,5 @@ struct ntlmssp_state
*/
NTSTATUS (*check_password)(struct ntlmssp_state *ntlmssp_state, DATA_BLOB *nt_session_key, DATA_BLOB *lm_session_key);
- /* ntlmv2 */
-
- unsigned char send_sign_key[16];
- unsigned char recv_sign_key[16];
-
- struct arcfour_state send_seal_arc4_state;
- struct arcfour_state recv_seal_arc4_state;
-
- uint32_t ntlm2_send_seq_num;
- uint32_t ntlm2_recv_seq_num;
-
- /* ntlmv1 */
- struct arcfour_state ntlmv1_arc4_state;
- uint32_t ntlmv1_seq_num;
+ union ntlmssp_crypt_state *crypt;
};