/*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include "gssapiP_eap.h"
+/*
+ * Wrapper for retrieving a naming attribute.
+ */
+
OM_uint32
gss_get_name_attribute(OM_uint32 *minor,
gss_name_t name,
gss_buffer_t display_value,
int *more)
{
- OM_uint32 major, tmpMinor;
+ OM_uint32 major;
+
+ *minor = 0;
if (name == GSS_C_NO_NAME) {
*minor = EINVAL;
GSSEAP_MUTEX_LOCK(&name->mutex);
-cleanup:
+ major = gssEapGetNameAttribute(minor, name, attr,
+ authenticated, complete,
+ value, display_value, more);
+
GSSEAP_MUTEX_UNLOCK(&name->mutex);
return major;