fix build error
[mech_eap.orig] / export_name.c
index 3e0654b..6477c3b 100644 (file)
 
 #include "gssapiP_eap.h"
 
+OM_uint32
+gss_export_name(OM_uint32 *minor,
+                const gss_name_t input_name,
+                gss_buffer_t exported_name)
+{
+    if (input_name == GSS_C_NO_NAME) {
+        *minor = EINVAL;
+        return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
+    }
+
+    return gssEapExportName(minor, input_name, exported_name);
+}