New attribute provider SPI
[mech_eap.orig] / duplicate_name.c
index b936655..fc54f7d 100644 (file)
@@ -63,14 +63,8 @@ gss_duplicate_name(OM_uint32 *minor,
         goto cleanup;
     }
 
-    if (input_name->flags & NAME_FLAG_RADIUS_ATTRIBUTES) {
-        major = radiusDuplicateAttrContext(minor, input_name, name);
-        if (GSS_ERROR(major))
-            goto cleanup;
-    }
-
-    if (input_name->flags & NAME_FLAG_SAML_ATTRIBUTES) {
-        major = samlDuplicateAttrContext(minor, input_name, name);
+    if (input_name->attrCtx != NULL) {
+        major = gssEapDuplicateAttrContext(minor, input_name, name);
         if (GSS_ERROR(major))
             goto cleanup;
     }