* SUCH DAMAGE.
*/
+/*
+ * Set an attribute on a name.
+ */
+
#include "gssapiP_eap.h"
OM_uint32
gss_buffer_t value)
{
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;
-
- type = gssEapAttributePrefixToType(&prefix);
- if (type == ATTR_TYPE_NONE) {
- major = samlSetAttribute(minor, name, complete, attr, value);
- } else {
- major = GSS_S_UNAVAILABLE;
- }
+ major = gssEapSetNameAttribute(minor, name, complete, attr, value);
-cleanup:
GSSEAP_MUTEX_UNLOCK(&name->mutex);
return major;