[76] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

typedef krb5_principal doesn't make sense

bjaspan@ATHENA.MIT.EDU (bjaspan@ATHENA.MIT.EDU)
Wed Jan 17 22:02:25 1990

typedef struct _krb5_data {
    int length;
    char *data;
} krb5_data;

typedef	krb5_data **	krb5_principal;	/* array of strings */
					/* CONVENTION: realm is first elem. */

Am I missing something, or should this be

typedef krb5_data *krb5_principal

?  Each krb5_data is a string, so the current definition of
krb5_principal is a pointer to an array of strings.  We decided all
typedef'ed types (except opaque objects) should be the-object-itself,
not a pointer-to-the-object.

Barr3y

home help back first fref pref prev next nref lref last post