s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
commit4c580459aa0b5921ffc954c7c20c6c5010133424
authorGünther Deschner <gd@samba.org>
Thu, 15 Oct 2009 12:13:26 +0000 (15 14:13 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:23 +0000 (26 11:39 +0100)
tree7ca86defcf6bad23f38f48b42bad6986eec2340d
parentc13db8c57cf215e84cd0178db229745f0b8399d4
s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.

When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP),
we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus
failing spnego_parse_auth() completely.

By just using the shared spnego/asn1 code, we get the parsing the correct way.

Guenther
(cherry picked from commit 449ab398f58c6e0041621752322ebe24e6d70225)
(cherry picked from commit 7936874af1ab8b2449af41f38695b2946813adf7)
source3/Makefile.in
source3/libsmb/clispnego.c