diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-05-10 11:04:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:36 -0500 |
commit | fa24196d0d5c7373317894865b7a88d972762101 (patch) | |
tree | f567f0e1d8d58d939946a2084e8ce8c1f55b82d7 /source4/auth | |
parent | 0b3e651e0567e5e628419ed57217b8c30cef20c5 (diff) | |
download | samba-fa24196d0d5c7373317894865b7a88d972762101.tar.gz samba-fa24196d0d5c7373317894865b7a88d972762101.tar.bz2 samba-fa24196d0d5c7373317894865b7a88d972762101.zip |
r6705: let the gensec module decide if messages can be signed and sealed in a different
order than a strict request - reply sequence
Note: we should also fix the client code...
metze
(This used to be commit 0a61d1f65150546f7a7582512ca010d156f963bf)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/gensec/gensec.h | 1 | ||||
-rw-r--r-- | source4/auth/ntlmssp/ntlmssp.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h index 71c00c5157..268881e4ba 100644 --- a/source4/auth/gensec/gensec.h +++ b/source4/auth/gensec/gensec.h @@ -39,6 +39,7 @@ struct gensec_target { #define GENSEC_FEATURE_SIGN 0x00000002 #define GENSEC_FEATURE_SEAL 0x00000004 #define GENSEC_FEATURE_DCE_STYLE 0x00000008 +#define GENSEC_FEATURE_ASYNC_REPLIES 0x00000010 /* GENSEC mode */ enum gensec_role diff --git a/source4/auth/ntlmssp/ntlmssp.c b/source4/auth/ntlmssp/ntlmssp.c index 254736688b..ac007ae3ab 100644 --- a/source4/auth/ntlmssp/ntlmssp.c +++ b/source4/auth/ntlmssp/ntlmssp.c @@ -183,6 +183,11 @@ static NTSTATUS gensec_ntlmssp_update(struct gensec_security *gensec_security, gensec_ntlmssp_state->have_features |= GENSEC_FEATURE_SESSION_KEY; } + /* only NTLMv2 can handle async replies */ + if (gensec_ntlmssp_state->neg_flags & NTLMSSP_NEGOTIATE_NTLM2) { + gensec_ntlmssp_state->have_features |= GENSEC_FEATURE_ASYNC_REPLIES; + } + return status; } |