summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c
index a923024055..df14265370 100644
--- a/src/usr.sbin/ocspcheck/ocspcheck.c
+++ b/src/usr.sbin/ocspcheck/ocspcheck.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocspcheck.c,v 1.20 2017/03/27 23:59:08 deraadt Exp $ */ 1/* $OpenBSD: ocspcheck.c,v 1.21 2017/05/08 20:15:34 beck Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2017 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2017 Bob Beck <beck@openbsd.org>
@@ -564,7 +564,7 @@ main(int argc, char **argv)
564 if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL) 564 if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL)
565 exit(1); 565 exit(1);
566 566
567 dspew("Built an %ld byte ocsp request\n", request->size); 567 dspew("Built an %zu byte ocsp request\n", request->size);
568 568
569 if ((host = url2host(request->url, &port, &path)) == NULL) 569 if ((host = url2host(request->url, &port, &path)) == NULL)
570 errx(1, "Invalid OCSP url %s from %s", request->url, 570 errx(1, "Invalid OCSP url %s from %s", request->url,
@@ -601,7 +601,7 @@ main(int argc, char **argv)
601 dspew("Server at %s returns:\n", host); 601 dspew("Server at %s returns:\n", host);
602 for (i = 0; i < httphsz; i++) 602 for (i = 0; i < httphsz; i++)
603 dspew(" [%s]=[%s]\n", httph[i].key, httph[i].val); 603 dspew(" [%s]=[%s]\n", httph[i].key, httph[i].val);
604 dspew(" [Body]=[%ld bytes]\n", hget->bodypartsz); 604 dspew(" [Body]=[%zu bytes]\n", hget->bodypartsz);
605 if (hget->bodypartsz <= 0) 605 if (hget->bodypartsz <= 0)
606 errx(1, "No body in reply from %s", host); 606 errx(1, "No body in reply from %s", host);
607 607