Properly implement neg_mechs & GM_USE_MG_CRED
authorNicolas Williams <nico@twosigma.com>
Sun, 19 Apr 2020 03:15:00 +0000 (22:15 -0500)
committerNicolas Williams <nico@twosigma.com>
Tue, 21 Apr 2020 05:21:32 +0000 (00:21 -0500)
commita54761d68ad995ea6c4c3f5f1bad2b2732837499
treeb3e460c61ee910ecba43654560730a9491f4ebbd
parent2ec9e1704287a7a31c696fd92c577eb8fb88b7bc
Properly implement neg_mechs & GM_USE_MG_CRED

SPNEGO was already using union creds.  Now make the mechglue know about
it, delete all of the cred-related SPNEGO stubs that are now not called
(lib/gssapi/spnego/cred_stubs.c), and implement gss_get/set_neg_mechs()
by storing the OID set in the union cred.

This commit was essentially authored as much if not more by Luke Howard
<lukeh at padl.com> as much as by the listed author.
20 files changed:
lib/gssapi/Makefile.am
lib/gssapi/NTMakefile
lib/gssapi/gssapi_mech.h
lib/gssapi/krb5/external.c
lib/gssapi/mech/cred.c
lib/gssapi/mech/cred.h
lib/gssapi/mech/gss_acquire_cred_from.c
lib/gssapi/mech/gss_add_cred_from.c
lib/gssapi/mech/gss_cred.c
lib/gssapi/mech/gss_get_neg_mechs.c
lib/gssapi/mech/gss_inquire_cred.c
lib/gssapi/mech/gss_mech_switch.c
lib/gssapi/mech/gss_set_neg_mechs.c
lib/gssapi/netlogon/external.c
lib/gssapi/ntlm/external.c
lib/gssapi/spnego/accept_sec_context.c
lib/gssapi/spnego/compat.c
lib/gssapi/spnego/cred_stubs.c [deleted file]
lib/gssapi/spnego/external.c
lib/gssapi/test_context.c