summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/t_hmac.c
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/lib/crypto/t_hmac.c
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/lib/crypto/t_hmac.c')
-rw-r--r--src/lib/crypto/t_hmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/t_hmac.c b/src/lib/crypto/t_hmac.c
index 63b90c76fe..bf629c359f 100644
--- a/src/lib/crypto/t_hmac.c
+++ b/src/lib/crypto/t_hmac.c
@@ -245,7 +245,7 @@ static void test_hmac()
krb5int_buf_add(&buf, "0x");
for (j = 0; j < out.length; j++)
krb5int_buf_add_fmt(&buf, "%02x", 0xff & outbuf[j]);
- if (krb5int_buf_cstr(&buf) == NULL)
+ if (krb5int_buf_data(&buf) == NULL)
abort();
if (strcmp(stroutbuf, md5tests[i].hexdigest)) {
printf("*** CHECK FAILED!\n"