gss_buffer_t display_value,
int *more)
{
- OM_uint32 major, tmpMinor;
+ OM_uint32 major;
gss_buffer_desc prefix, suffix;
- enum gss_eap_attribute_type type;
if (name == GSS_C_NO_NAME) {
*minor = EINVAL;
GSSEAP_MUTEX_LOCK(&name->mutex);
- major = decomposeAttributeName(minor, attr, &prefix, &suffix);
- if (GSS_ERROR(major))
- goto cleanup;
+ major = gssEapGetNameAttribute(minor, name, attr,
+ authenticated, complete,
+ value, display_value, more);
- type = gssEapAttributePrefixToType(&prefix);
- if (type == ATTR_TYPE_SAML_AAA_ASSERTION) {
- major = samlGetAssertion(minor, name->samlCtx, value);
- } else {
- major = samlGetAttribute(minor, name->samlCtx, &suffix,
- authenticated, complete,
- value, display_value, more);
- }
-
-cleanup:
GSSEAP_MUTEX_UNLOCK(&name->mutex);
return major;