remove debugging statement
[moonshot.git] / mech_eap / inquire_names_for_mech.c
index 8ceaa89..e01740a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * SUCH DAMAGE.
  */
 
+/*
+ * Return supported name OID types.
+ */
+
 #include "gssapiP_eap.h"
 
 OM_uint32
@@ -45,12 +49,13 @@ gss_inquire_names_for_mech(OM_uint32 *minor,
 #ifdef HAVE_GSS_C_NT_COMPOSITE_EXPORT
         GSS_C_NT_COMPOSITE_EXPORT,
 #endif
-        GSS_EAP_NT_PRINCIPAL_NAME,
+        GSS_EAP_NT_EAP_NAME,
+        GSS_C_NT_ANONYMOUS,
     };
     size_t i;
 
     if (!gssEapIsMechanismOid(mechanism)) {
-        *minor = 0;
+        *minor = GSSEAP_WRONG_MECH;
         return GSS_S_BAD_MECH;
     }