From ddf60ba5e894ad339c96c6f61446dfc8cb79e779 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 5 Nov 2008 17:08:47 +0000 Subject: Rename krb5int_buf_cstr to krb5int_buf_data, since k5bufs can be used for binary data as well as C string data. The buffer will always have a null byte at krb5int_buf_len bytes regardless of whether it contains C string data. ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21003 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-buf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-buf.h b/src/include/k5-buf.h index 885c2fdc29..de869d3479 100644 --- a/src/include/k5-buf.h +++ b/src/include/k5-buf.h @@ -106,17 +106,17 @@ void krb5int_buf_truncate(struct k5buf *buf, size_t len); For a dynamic buffer, any buffer modification operation except krb5int_buf_truncate may invalidate the byte array address. */ -char *krb5int_buf_cstr(struct k5buf *buf); +char *krb5int_buf_data(struct k5buf *buf); /* Retrieve the length of BUF, or -1 if there has been an allocation failure or the fixed buffer ran out of room. The length is equal - to strlen(krb5int_buf_cstr(buf)) unless binary data was added with + to strlen(krb5int_buf_data(buf)) unless binary data was added with krb5int_buf_add_len. */ ssize_t krb5int_buf_len(struct k5buf *buf); /* Free the storage used in the dynamic buffer BUF. The caller may choose to take responsibility for freeing the return value of - krb5int_buf_cstr instead of using this function. If BUF is a fixed + krb5int_buf_data instead of using this function. If BUF is a fixed buffer, an assertion failure will result. It is unnecessary (though harmless) to free a buffer after an error is detected; the storage will already have been freed in that case. */ -- cgit