summaryrefslogtreecommitdiff
path: root/krl.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-01-19 17:35:48 +0000
committerDamien Miller <djm@mindrot.org>2015-01-20 08:33:01 +1100
commit4e62cc68ce4ba20245d208b252e74e91d3785b74 (patch)
treeb84ffde6a1714b93bcd82b46ba1254525b423e19 /krl.c
parentd85e06245907d49a2cd0cfa0abf59150ad616f42 (diff)
upstream commit
fix format strings in (disabled) debugging
Diffstat (limited to 'krl.c')
-rw-r--r--krl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/krl.c b/krl.c
index 721cabdd8..acfb22732 100644
--- a/krl.c
+++ b/krl.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/* $OpenBSD: krl.c,v 1.27 2015/01/18 14:01:00 deraadt Exp $ */ 17/* $OpenBSD: krl.c,v 1.28 2015/01/19 17:35:48 djm Exp $ */
18 18
19#include "includes.h" 19#include "includes.h"
20 20
@@ -736,7 +736,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
736 /* Finally, output sections for revocations by public key/hash */ 736 /* Finally, output sections for revocations by public key/hash */
737 sshbuf_reset(sect); 737 sshbuf_reset(sect);
738 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_keys) { 738 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_keys) {
739 KRL_DBG(("%s: key len %u ", __func__, rb->len)); 739 KRL_DBG(("%s: key len %zu ", __func__, rb->len));
740 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) 740 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
741 goto out; 741 goto out;
742 } 742 }
@@ -747,7 +747,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
747 } 747 }
748 sshbuf_reset(sect); 748 sshbuf_reset(sect);
749 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_sha1s) { 749 RB_FOREACH(rb, revoked_blob_tree, &krl->revoked_sha1s) {
750 KRL_DBG(("%s: hash len %u ", __func__, rb->len)); 750 KRL_DBG(("%s: hash len %zu ", __func__, rb->len));
751 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) 751 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
752 goto out; 752 goto out;
753 } 753 }
@@ -772,7 +772,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
772 if ((r = sshkey_sign(sign_keys[i], &sblob, &slen, 772 if ((r = sshkey_sign(sign_keys[i], &sblob, &slen,
773 sshbuf_ptr(buf), sshbuf_len(buf), 0)) == -1) 773 sshbuf_ptr(buf), sshbuf_len(buf), 0)) == -1)
774 goto out; 774 goto out;
775 KRL_DBG(("%s: signature sig len %u", __func__, slen)); 775 KRL_DBG(("%s: signature sig len %zu", __func__, slen));
776 if ((r = sshbuf_put_string(buf, sblob, slen)) != 0) 776 if ((r = sshbuf_put_string(buf, sblob, slen)) != 0)
777 goto out; 777 goto out;
778 } 778 }