[147] in Kerberos_V5_Development

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

Re: krb5_data

qjb@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Mon Jan 22 16:15:19 1990

It isn't really difficult to deal with; it just means that if I am converting
something like a principal into a format that can be written to a file,
I have to say sizeof var->length instead of sizeof krb5_length.  Not a big deal.
I was having a small lapse when I wrote that because I almost always use
sizeof (type) instead of sizeof(variable).

If the primary puprose for this is length encoded strings, then I guess we can
leave it as char *.  If it is really for generic data, though, it seems like
having types for length and data is probably appropriate.  Certainly, data
should be a krb5_pointer if this is the case.

I guess it could go either way.

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