1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4:gensec_gssapi: pass gss_got_flags to gssapi_get_sig_size()

We need to calculate the signature length based on the negotiated
flags. This is most important on the server side where,
gss_accept_sec_context() doesn't get gss_want_flags, but fills
gss_got_flags.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-09-02 08:20:37 +02:00 committed by Andreas Schneider
parent cca980eb51
commit f0afefefe4

View File

@ -1358,7 +1358,7 @@ static size_t gensec_gssapi_sig_size(struct gensec_security *gensec_security, si
sig_size = gssapi_get_sig_size(gensec_gssapi_state->gssapi_context,
gensec_gssapi_state->gss_oid,
gensec_gssapi_state->gss_want_flags,
gensec_gssapi_state->gss_got_flags,
data_size);
gensec_gssapi_state->sig_size = sig_size;