summaryrefslogtreecommitdiff
path: root/hmac.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-03-24 20:03:44 +0000
committerDamien Miller <djm@mindrot.org>2015-03-27 12:00:47 +1100
commitdf100be51354e447d9345cf1ec22e6013c0eed50 (patch)
tree46e7d3a6a0d95a51f97914337c4c0143cfc0b338 /hmac.c
parenta22b9ef21285e81775732436f7c84a27bd3f71e0 (diff)
upstream commit
correct fmt-string for size_t as noted by Nicholas Lemonias; ok djm@
Diffstat (limited to 'hmac.c')
-rw-r--r--hmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hmac.c b/hmac.c
index d1c12417e..1c879640c 100644
--- a/hmac.c
+++ b/hmac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hmac.c,v 1.11 2015/01/15 21:37:14 markus Exp $ */ 1/* $OpenBSD: hmac.c,v 1.12 2015/03/24 20:03:44 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Markus Friedl. All rights reserved. 3 * Copyright (c) 2014 Markus Friedl. All rights reserved.
4 * 4 *
@@ -154,7 +154,7 @@ hmac_test(void *key, size_t klen, void *m, size_t mlen, u_char *e, size_t elen)
154 154
155 if (memcmp(e, digest, elen)) { 155 if (memcmp(e, digest, elen)) {
156 for (i = 0; i < elen; i++) 156 for (i = 0; i < elen; i++)
157 printf("[%zd] %2.2x %2.2x\n", i, e[i], digest[i]); 157 printf("[%zu] %2.2x %2.2x\n", i, e[i], digest[i]);
158 printf("mismatch\n"); 158 printf("mismatch\n");
159 } else 159 } else
160 printf("ok\n"); 160 printf("ok\n");