/*
- * 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.
*/
+/*
+ * Enumerate name attributes.
+ */
+
#include "gssapiP_eap.h"
OM_uint32 gss_inquire_name(OM_uint32 *minor,
{
OM_uint32 major, tmpMinor;
+ *minor = 0;
+
if (name_is_MN != NULL)
- *name_is_MN = 1;
+ *name_is_MN = 0;
if (MN_mech != NULL)
- *MN_mech = GSS_EAP_MECHANISM;
+ *MN_mech = GSS_C_NO_OID;
if (attrs != NULL)
*attrs = GSS_C_NO_BUFFER_SET;
return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
}
- if (attrs == NULL)
- return GSS_S_COMPLETE;
-
GSSEAP_MUTEX_LOCK(&name->mutex);
major = gssEapInquireName(minor, name, name_is_MN, MN_mech, attrs);