projects
/
mech_eap.orig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New attribute provider SPI
[mech_eap.orig]
/
set_name_attribute.c
diff --git
a/set_name_attribute.c
b/set_name_attribute.c
index
9807557
..
fa95836
100644
(file)
--- a/
set_name_attribute.c
+++ b/
set_name_attribute.c
@@
-41,7
+41,6
@@
gss_set_name_attribute(OM_uint32 *minor,
{
OM_uint32 major;
gss_buffer_desc prefix, suffix;
{
OM_uint32 major;
gss_buffer_desc prefix, suffix;
- enum gss_eap_attribute_type type;
if (name == GSS_C_NO_NAME) {
*minor = EINVAL;
if (name == GSS_C_NO_NAME) {
*minor = EINVAL;
@@
-50,18
+49,8
@@
gss_set_name_attribute(OM_uint32 *minor,
GSSEAP_MUTEX_LOCK(&name->mutex);
GSSEAP_MUTEX_LOCK(&name->mutex);
- major = decomposeAttributeName(minor, attr, &prefix, &suffix);
- if (GSS_ERROR(major))
- goto cleanup;
+ major = gssEapSetNameAttribute(minor, name, complete, attr, value);
- type = gssEapAttributePrefixToType(&prefix);
- if (type == ATTR_TYPE_NONE) {
- major = samlSetAttribute(minor, name, complete, attr, value);
- } else {
- major = GSS_S_UNAVAILABLE;
- }
-
-cleanup:
GSSEAP_MUTEX_UNLOCK(&name->mutex);
return major;
GSSEAP_MUTEX_UNLOCK(&name->mutex);
return major;