]> git.ipfire.org Git - thirdparty/krb5.git/commit
Accept GSS mechs which don't supply attributes 985/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 6 Oct 2019 22:35:50 +0000 (18:35 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 21 Oct 2019 20:49:47 +0000 (16:49 -0400)
commitbd321c9caa6dc4b034bc3279a1af39af4c41210d
treedb5f295a82ecd35ba30acdc5bb62e0822ebbaa3f
parent208e85530f8a0d0490e50d89aed4f6f11acfd86a
Accept GSS mechs which don't supply attributes

If gss_inquire_attrs_for_mech() is called for a mechanism which does
not implement it, the call will succeed with mech_attrs set to
GSS_C_NO_OID_SET (as is explicitly allowed by RFC 5587).
generic_gss_test_oid_set_member() returns an error on this value,
causing gss_accept_sec_context() to erroneously deny the mechanism
when no verifier credential handle is supplied.  Change
allow_mech_by_default() to explicitly check for no mech attribute set.

ticket: 8840 (new)
tags: pullup
target_version: 1.17-next
target_version: 1.16-next
src/lib/gssapi/mechglue/g_accept_sec_context.c