diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-07-06 17:46:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:53 -0500 |
commit | 215c400aee73160bae0d036db8617be0aa3c8b99 (patch) | |
tree | d63cd11e55281c748689da7085d530f22ceef3d8 /source4/libcli/auth | |
parent | 1432bb01f38b3791356bb5e45193452a0770da96 (diff) | |
download | samba-215c400aee73160bae0d036db8617be0aa3c8b99.tar.gz samba-215c400aee73160bae0d036db8617be0aa3c8b99.tar.bz2 samba-215c400aee73160bae0d036db8617be0aa3c8b99.zip |
r1363: add SPNEGO_NONE_RESULT as spnego_negResult value
this should indicate that we don't send a spnego_negResult t all over the wire
metze
(This used to be commit 69d685d81784e5fb33e41d3244498ac620a2f5f0)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r-- | source4/libcli/auth/spnego.h | 3 | ||||
-rw-r--r-- | source4/libcli/auth/spnego_parse.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source4/libcli/auth/spnego.h b/source4/libcli/auth/spnego.h index eba98c5218..decd79e107 100644 --- a/source4/libcli/auth/spnego.h +++ b/source4/libcli/auth/spnego.h @@ -36,7 +36,8 @@ enum spnego_negResult { SPNEGO_ACCEPT_COMPLETED = 0, SPNEGO_ACCEPT_INCOMPLETE = 1, - SPNEGO_REJECT = 2 + SPNEGO_REJECT = 2, + SPNEGO_NONE_RESULT = 3 }; struct spnego_negTokenInit { diff --git a/source4/libcli/auth/spnego_parse.c b/source4/libcli/auth/spnego_parse.c index c2e23c0ffe..9c50e3887d 100644 --- a/source4/libcli/auth/spnego_parse.c +++ b/source4/libcli/auth/spnego_parse.c @@ -231,9 +231,11 @@ static BOOL write_negTokenTarg(ASN1_DATA *asn1, struct spnego_negTokenTarg *toke asn1_push_tag(asn1, ASN1_CONTEXT(1)); asn1_push_tag(asn1, ASN1_SEQUENCE(0)); - asn1_push_tag(asn1, ASN1_CONTEXT(0)); - asn1_write_enumerated(asn1, token->negResult); - asn1_pop_tag(asn1); + if (token->negResult != SPNEGO_NONE_RESULT) { + asn1_push_tag(asn1, ASN1_CONTEXT(0)); + asn1_write_enumerated(asn1, token->negResult); + asn1_pop_tag(asn1); + } if (token->supportedMech) { asn1_push_tag(asn1, ASN1_CONTEXT(1)); |