String handling in krb5

Greg Hudson ghudson at MIT.EDU
Mon Nov 3 12:09:58 EST 2008


On Mon, 2008-11-03 at 11:59 -0500, Sam Hartman wrote:
> Greg, is it safe to use k5buf for strings that may contain nulls?
> If so, is cstr really the right name for the function to get a char *?

I could rename it to krb5int_buf_data.  The point of calling it the "C
string" is that the caller can be assured that it's null-terminated, but
perhaps that name would be too unnatural for code using the k5bufs with
binary data.





More information about the krbdev mailing list