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.
This commit is contained in:
@@ -42,7 +42,11 @@ release_mech_cred(OM_uint32 *minor, struct _gss_mechanism_cred *mc)
|
||||
{
|
||||
OM_uint32 major;
|
||||
|
||||
major = mc->gmc_mech->gm_release_cred(minor, &mc->gmc_cred);
|
||||
if (mc->gmc_mech->gm_release_cred != NULL)
|
||||
major = mc->gmc_mech->gm_release_cred(minor, &mc->gmc_cred);
|
||||
else
|
||||
major = GSS_S_COMPLETE;
|
||||
|
||||
free(mc);
|
||||
|
||||
return major;
|
||||
|
Reference in New Issue
Block a user