summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/mechglue/g_initialize.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-02-10 23:44:18 +0000
committerGreg Hudson <ghudson@mit.edu>2010-02-10 23:44:18 +0000
commit079eed2cf749702f75ddc385cf943fbab931f9d8 (patch)
treee4e548c13a58a0d4a55c8a37ba3b7405f9b830db /src/lib/gssapi/mechglue/g_initialize.c
parent11079f43e990d8150870a2c894e17e286f46c96c (diff)
downloadkrb5-079eed2cf749702f75ddc385cf943fbab931f9d8.tar.gz
krb5-079eed2cf749702f75ddc385cf943fbab931f9d8.tar.xz
krb5-079eed2cf749702f75ddc385cf943fbab931f9d8.zip
Implement gss_set_neg_mechs
Implement gss_set_neg_mechs in SPNEGO by intersecting the provided mech set with the mechanisms available in the union credential. As we now need space to hold the mech set, the SPNEGO credential is now a structure and not just a mechglue credential. t_spnego.c is a test program which exercises the new logic. Like the other GSSAPI tests, it is not run as part of "make check" at this time. ticket: 6658 target_version: 1.8 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23715 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/mechglue/g_initialize.c')
-rw-r--r--src/lib/gssapi/mechglue/g_initialize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
index e01d17474..70c220391 100644
--- a/src/lib/gssapi/mechglue/g_initialize.c
+++ b/src/lib/gssapi/mechglue/g_initialize.c
@@ -775,6 +775,8 @@ build_dynamicMech(void *dl, const gss_OID mech_type)
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_release_any_name_mapping);
/* RFC 4401 (introduced in 1.8) */
GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_pseudo_random);
+ /* RFC 4178 (introduced in 1.8; gss_get_neg_mechs not implemented) */
+ GSS_ADD_DYNAMIC_METHOD(dl, mech, gss_set_neg_mechs);
assert(mech_type != GSS_C_NO_OID);