summaryrefslogtreecommitdiff
path: root/source4/auth/ntlmssp
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-05-10 11:04:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:36 -0500
commitfa24196d0d5c7373317894865b7a88d972762101 (patch)
treef567f0e1d8d58d939946a2084e8ce8c1f55b82d7 /source4/auth/ntlmssp
parent0b3e651e0567e5e628419ed57217b8c30cef20c5 (diff)
downloadsamba-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/ntlmssp')
-rw-r--r--source4/auth/ntlmssp/ntlmssp.c5
1 files changed, 5 insertions, 0 deletions
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;
}