summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }