From dce84ffd379012812170f68f7de8aab73123f0b3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 9 May 2004 12:42:18 +0000 Subject: r610: - Merge the Samba3 'ntlm_auth --diagnostics' testsuite to Samba4. - This required using NETLOGON_NEG_AUTH2_FLAGS for the SetupCredentials2 negotiation flags, which is what Samba3 does, because otherwise the server uses different crypto. - This tests the returned session keys, which we decrypt. - Update the Samba4 notion of a 'session key' to be a DATA_BLOB in most places. - Fix session key code to return NT_STATUS_NO_SESSION_KEY if none is available. - Remove a useless argument to SMBsesskeygen_ntv1 - move netr_CredentialState from the .idl to the new credentials.h Andrew Bartlett (This used to be commit 44f8b5b53e6abd4de8a676f78d729988fadff320) --- source4/include/cli_context.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/include/cli_context.h') diff --git a/source4/include/cli_context.h b/source4/include/cli_context.h index 0e817c3cb0..9cd36d0c35 100644 --- a/source4/include/cli_context.h +++ b/source4/include/cli_context.h @@ -66,10 +66,6 @@ struct cli_negotiate { unsigned int writebraw_supported:1; const char *server_domain; - - /* remember the session key for data encryption in various sub-protocols - such as LSA */ - uint8 user_session_key[16]; }; /* this is the context for a SMB socket associated with the socket itself */ @@ -189,6 +185,8 @@ struct cli_session { /* default pid for this session */ uint32 pid; + + DATA_BLOB user_session_key; }; /* -- cgit