/*
- * 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.
*/
+/*
+ * Compare two names.
+ */
+
#include "gssapiP_eap.h"
OM_uint32
gss_name_t name2,
int *name_equal)
{
- OM_uint32 major;
- krb5_context krbContext;
-
- GSSEAP_KRB_INIT(&krbContext);
-
- if (name1 == GSS_C_NO_NAME || name2 == GSS_C_NO_NAME) {
- *minor = EINVAL;
- return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
- }
-
- *name_equal = krb5_principal_compare(krbContext,
- name1->krbPrincipal,
- name2->krbPrincipal);
-
- return major;
+ return gssEapCompareName(minor, name1, name2, name_equal);
}