gss_buffer_set_t attrs;
};
+/*
+ * The purpose of this callback interface is to not expose the attribute
+ * prefixes to the attribute providers themselves.
+ */
static OM_uint32
addAttribute(OM_uint32 *minor,
void *data,
args.attrs = *attrs;
- if (name->assertion != NULL) {
+ if (name->samlCtx != NULL) {
args.prefix = gssEapAttributeTypeToPrefix(ATTR_TYPE_SAML_AAA_ASSERTION);
major = addAttribute(minor, &args, GSS_C_NO_BUFFER);
goto cleanup;
args.prefix = gssEapAttributeTypeToPrefix(ATTR_TYPE_SAML_ATTR);
- major = samlGetAttributeTypes(minor, name->assertion, &args, addAttribute);
- if (GSS_ERROR(major))
- goto cleanup;
- }
-
- if (name->avps != NULL) {
- args.prefix = gssEapAttributeTypeToPrefix(ATTR_TYPE_RADIUS_AVP);
- major = radiusGetAttributeTypes(minor, name->avps, &args, addAttribute);
+ major = samlGetAttributeTypes(minor, name->samlCtx,
+ &args, addAttribute);
if (GSS_ERROR(major))
goto cleanup;
}