+2006-03-06 Tom Yu <tlyu@mit.edu>
+
+ * g_acquire_cred.c (gss_add_cred): Maintain old default-cred
+ behavior by not calling display_name on GSS_C_NO_NAME.
+
2004-09-22 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Delete @SHARED_RULE@ line.
internal_name = allocated_name;
}
- if ((status = mech->gss_display_name(mech->context,
- &temp_minor_status, internal_name,
- &union_cred->auxinfo.name,
- &union_cred->auxinfo.name_type)) !=
- GSS_S_COMPLETE)
- goto errout;
+ if (internal_name != GSS_C_NO_NAME) {
+ status = mech->gss_display_name(mech->context,
+ &temp_minor_status, internal_name,
+ &union_cred->auxinfo.name,
+ &union_cred->auxinfo.name_type);
+
+ if (status != GSS_S_COMPLETE)
+ goto errout;
+ }
}
/* now add the new credential elements */