summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-10 02:14:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-10 02:14:35 +0000
commite9a94cd2c9cab4518603620259dae44b40d9049e (patch)
treed39d2a56b972fc2bdeda042f5c493029aacf1d0b /source3/include
parentde6b39d898d5fb3106d7ed80249be7f74f83caf6 (diff)
downloadsamba-e9a94cd2c9cab4518603620259dae44b40d9049e.tar.gz
samba-e9a94cd2c9cab4518603620259dae44b40d9049e.tar.bz2
samba-e9a94cd2c9cab4518603620259dae44b40d9049e.zip
Further work on NTLMSSP-based SMB signing. Current status is that I cannnot
get Win2k to send a valid signiture in it's session setup reply - which it will give to win2k clients. So, I need to look at becoming 'more like MS', but for now I'll get this code into the tree. It's actually based on the TNG cli_pipe_ntlmssp.c, as it was slightly easier to understand than our own (but only the utility functions remain in any way intact...). This includes the mysical 'NTLM2' code - I have no idea if it actually works. (I couldn't get TNG to use it for its pipes either). Andrew Bartlett (This used to be commit a034a5e381ba5612be21e2ba640d11f82cd945da)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ntlmssp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h
index 4fa4259a6a..f0278ffece 100644
--- a/source3/include/ntlmssp.h
+++ b/source3/include/ntlmssp.h
@@ -92,6 +92,8 @@ typedef struct ntlmssp_state
typedef struct ntlmssp_client_state
{
TALLOC_CTX *mem_ctx;
+ unsigned int ref_count;
+
BOOL unicode;
BOOL use_ntlmv2;
char *user;
@@ -102,9 +104,30 @@ typedef struct ntlmssp_client_state
const char *(*get_global_myname)(void);
const char *(*get_domain)(void);
+ DATA_BLOB chal;
+ DATA_BLOB lm_resp;
+ DATA_BLOB nt_resp;
DATA_BLOB session_key;
uint32 neg_flags;
+
+ /* SMB Signing */
+
+ uint32 ntlmssp_seq_num;
+
+ /* ntlmv2 */
+ char cli_sign_const[16];
+ char cli_seal_const[16];
+ char srv_sign_const[16];
+ char srv_seal_const[16];
+
+ unsigned char cli_sign_hash[258];
+ unsigned char cli_seal_hash[258];
+ unsigned char srv_sign_hash[258];
+ unsigned char srv_seal_hash[258];
+
+ /* ntlmv1 */
+ unsigned char ntlmssp_hash[258];
} NTLMSSP_CLIENT_STATE;