summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-11-05 17:08:47 +0000
committerGreg Hudson <ghudson@mit.edu>2008-11-05 17:08:47 +0000
commitddf60ba5e894ad339c96c6f61446dfc8cb79e779 (patch)
tree7c422431eee6bfe27aa691c05f8a1741b8934397 /src/include
parent34bf3f538cc063b49fc9ac691d617522a7962e19 (diff)
downloadkrb5-ddf60ba5e894ad339c96c6f61446dfc8cb79e779.tar.gz
krb5-ddf60ba5e894ad339c96c6f61446dfc8cb79e779.tar.xz
krb5-ddf60ba5e894ad339c96c6f61446dfc8cb79e779.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-buf.h6
1 files changed, 3 insertions, 3 deletions
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. */