Heimdal portability fixes (except for reauth)
[mech_eap.git] / inquire_names_for_mech.c
index 8ceaa89..3f53217 100644 (file)
  * SUCH DAMAGE.
  */
 
+/*
+ * Return supported name OID types.
+ */
+
 #include "gssapiP_eap.h"
 
 OM_uint32
@@ -46,11 +50,12 @@ gss_inquire_names_for_mech(OM_uint32 *minor,
         GSS_C_NT_COMPOSITE_EXPORT,
 #endif
         GSS_EAP_NT_PRINCIPAL_NAME,
+        GSS_C_NT_ANONYMOUS,
     };
     size_t i;
 
     if (!gssEapIsMechanismOid(mechanism)) {
-        *minor = 0;
+        *minor = GSSEAP_WRONG_MECH;
         return GSS_S_BAD_MECH;
     }