authentication for krb5_aname_to_lname.
Ticket: 957
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16321
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-05-07 Sam Hartman <hartmans@mit.edu>
+
+ * an_to_ln.c: Patch from Matt Crawford to allow matching on
+ realms of cross-realm principals.
+
2004-05-05 Ken Raeburn <raeburn@mit.edu>
* localaddr.c: Incorporate foreach_localaddr implementation.
char *selstring = 0;
int num_comps, compind;
char *cout;
- krb5_data *datap;
+ krb5_const krb5_data *datap;
char *outstring;
/*
if (*current == '$') {
if ((sscanf(current+1, "%d", &compind) == 1) &&
(compind <= num_comps) &&
- (datap = krb5_princ_component(context,
- aname,
- compind-1))
+ (datap =
+ (compind > 0)
+ ? krb5_princ_component(context, aname,
+ compind-1)
+ : krb5_princ_realm(context, aname))
) {
strncpy(cout,
datap->data,