[690] in Kerberos_V5_Development
Re: Sommerfeld: memory allocation changes for krb5.
tytso@ATHENA.MIT.EDU (tytso@ATHENA.MIT.EDU)
Wed Apr 24 18:12:11 1991
Something else which Bill and I discussed was adding some extra routines
to the API to make it easier for clinets to treat krb5_principal as an
opaque type. Sample routines include:
krb5_build_principal(principal, str1, ...);
krb5_principal *principal;
krb5_build_principal_ext(*principal, len1, str1, ...);
krb5_principal *principal;
(appropriate varargs magic; len_x are integers and str_x
are char *)
krb5_build_pricipal(*principal, v);
krb5_principal *principal;
va_arg v;
These three routines build up arbitrary principals using the
passed set of strings to it.
char *krb5_principal_aref(principal, n, length)
krb5_principal principal;
int n;
int *length;
This routine references the nth element of the principal name,
where the realm is element 0.