more work on SAML ification
[mech_eap.orig] / set_name_attribute.c
index a8a4a56..1c50037 100644 (file)
@@ -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: