diff options
author | Kouhei Sutou <kou@clear-code.com> | 2009-08-13 15:12:01 +0900 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-17 20:10:54 +0200 |
commit | f8dae40fc8e40f747a4571a2500bba9f1a790fa5 (patch) | |
tree | 778ee30d1a61903a9a4abe617777be6a48dfc3fa /source4/auth | |
parent | c2055de162b154efb1aef0d2977f860a01ffdbbc (diff) | |
download | samba-f8dae40fc8e40f747a4571a2500bba9f1a790fa5.tar.gz samba-f8dae40fc8e40f747a4571a2500bba9f1a790fa5.tar.bz2 samba-f8dae40fc8e40f747a4571a2500bba9f1a790fa5.zip |
spnego: Support ASN.1 BIT STRING and use it in SPNEGO.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/gensec/spnego.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/gensec/spnego.c b/source4/auth/gensec/spnego.c index 8f06eab8bb..977d52ec10 100644 --- a/source4/auth/gensec/spnego.c +++ b/source4/auth/gensec/spnego.c @@ -628,7 +628,8 @@ static NTSTATUS gensec_spnego_create_negTokenInit(struct gensec_security *gensec /* List the remaining mechs as options */ spnego_out.negTokenInit.mechTypes = send_mech_types; - spnego_out.negTokenInit.reqFlags = 0; + spnego_out.negTokenInit.reqFlags = null_data_blob; + spnego_out.negTokenInit.reqFlagsPadding = 0; if (spnego_state->state_position == SPNEGO_SERVER_START) { /* server credentials */ @@ -844,7 +845,8 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA /* compose reply */ spnego_out.type = SPNEGO_NEG_TOKEN_INIT; spnego_out.negTokenInit.mechTypes = my_mechs; - spnego_out.negTokenInit.reqFlags = 0; + spnego_out.negTokenInit.reqFlags = null_data_blob; + spnego_out.negTokenInit.reqFlagsPadding = 0; spnego_out.negTokenInit.mechListMIC = null_data_blob; spnego_out.negTokenInit.mechToken = unwrapped_out; |