krb5_context krbContext;
gss_name_t name;
- if (name == GSS_C_NO_NAME) {
+ if (input_name == GSS_C_NO_NAME) {
*minor = EINVAL;
return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME;
}
goto cleanup;
}
- major = radiusDuplicateAVPs(minor, input_name->avps, &name->avps);
- if (GSS_ERROR(major))
- goto cleanup;
-
- major = samlDuplicateAssertion(minor, input_name->assertion, &name->assertion);
- if (GSS_ERROR(major))
- goto cleanup;
+ if (input_name->samlCtx != NULL) {
+ major = samlDuplicateAttrContext(minor, input_name->samlCtx,
+ &name->samlCtx);
+ if (GSS_ERROR(major))
+ goto cleanup;
+ }
*dest_name = name;