X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=get_name_attribute.c;h=3b22dc5d46c4ea4519be3c3d976a8734b808e51b;hb=1f273eda615c04331df6849cfbf3cfad069ea8b0;hp=0987f15829a0389a39df6b20377cecd3b7d394dd;hpb=1edeac56c95912271f52377873d9f0454f637a69;p=mech_eap.orig diff --git a/get_name_attribute.c b/get_name_attribute.c index 0987f15..3b22dc5 100644 --- a/get_name_attribute.c +++ b/get_name_attribute.c @@ -67,21 +67,22 @@ gss_get_name_attribute(OM_uint32 *minor, type = gssEapAttributePrefixToType(&prefix); switch (type) { - case ATTR_TYPE_SAML_AAA_ASSERTION: - major = samlExportAssertion(minor, name->assertion, value); - break; + case ATTR_TYPE_NONE: case ATTR_TYPE_SAML_ATTR: - major = samlGetAttribute(minor, name->assertion, &suffix, + major = samlGetAttribute(minor, type, name, + (type == ATTR_TYPE_NONE) ? attr : &suffix, authenticated, complete, value, display_value, more); break; + case ATTR_TYPE_SAML_AAA_ASSERTION: + major = samlGetAssertion(minor, name, value); + break; case ATTR_TYPE_RADIUS_AVP: - major = radiusGetAVP(minor, name->avps, &suffix, - authenticated, complete, - value, display_value, more); + major = radiusGetAttribute(minor, name, &suffix, + authenticated, complete, + value, display_value, more); break; default: - *minor = ENOENT; major = GSS_S_UNAVAILABLE; break; }