GS2 helpers
[mech_eap.git] / export_name_composite.c
index 2b80dba..7b094f6 100644 (file)
 
 #include "gssapiP_eap.h"
 
-/*
- * Not sure about this. If we have a generalised representation of composite
- * names, it should be (a) defined in the naming extensions specification
- * and (b) implemented by the mechanism glue.
- */
 OM_uint32
 gss_export_name_composite(OM_uint32 *minor,
                           gss_name_t input_name,
@@ -47,5 +42,7 @@ gss_export_name_composite(OM_uint32 *minor,
         return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
     }
 
-    return gssEapExportName(minor, input_name, exported_name, 1);
+    return gssEapExportNameInternal(minor, input_name, exported_name,
+                                    EXPORT_NAME_FLAG_OID |
+                                    EXPORT_NAME_FLAG_COMPOSITE);
 }