X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=blobdiff_plain;f=set_name_attribute.c;h=1c500375c31b2131b499bd280caa9d1005c7211e;hp=a8a4a56856306e84ab03d0951cea24210ee0de55;hb=c581903743f5bf281548368f49bc5d37d338a4ea;hpb=1f46fa2afbe963711a1958aa9dc054943d30ad33 diff --git a/set_name_attribute.c b/set_name_attribute.c index a8a4a56..1c50037 100644 --- a/set_name_attribute.c +++ b/set_name_attribute.c @@ -55,19 +55,11 @@ gss_set_name_attribute(OM_uint32 *minor, goto cleanup; type = gssEapAttributePrefixToType(&prefix); - switch (type) { - case ATTR_TYPE_SAML_ATTR: - major = samlSetAttribute(minor, name->samlCtx, - complete, &suffix, value); - break; - case ATTR_TYPE_RADIUS_AVP: - major = radiusSetAttribute(minor, name->radiusCtx, - complete, &suffix, value); - break; - default: - *minor = ENOENT; + if (type != ATTR_TYPE_SAML_AAA_ASSERTION) { + major = samlSetAttribute(minor, name->samlCtx, complete, + attr, value); + } else { major = GSS_S_UNAVAILABLE; - break; } cleanup: