Changes to Autoconf/Automake configuration files for windows port.
[mech_eap.orig] / mech_eap / map_name_to_any.c
index 6f952e3..7d9c871 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "gssapiP_eap.h"
 
-OM_uint32
+OM_uint32 KRB5_CALLCONV
 gss_map_name_to_any(OM_uint32 *minor,
                     gss_name_t name,
                     int authenticated,
@@ -50,7 +50,13 @@ gss_map_name_to_any(OM_uint32 *minor,
 
     GSSEAP_MUTEX_LOCK(&name->mutex);
 
+#ifdef GSSEAP_ENABLE_ACCEPTOR
     major = gssEapMapNameToAny(minor, name, authenticated, type_id, output);
+#else
+    (void)authenticated;
+    (void)type_id;
+    major = GSS_S_COMPLETE;
+#endif
 
     GSSEAP_MUTEX_UNLOCK(&name->mutex);