summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-09-05 21:06:31 +0000
committertb <>2022-09-05 21:06:31 +0000
commit7608dd1ef4e1d2656a9203e2091d53747a14679f (patch)
treecda70a930b6e462786beda42d51e130bb873b6c3 /src
parent0b315a15aa761d629b59c54becaeecc44627e42e (diff)
downloadopenbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.gz
openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.bz2
openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.zip
Convert from %i to %d
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1basic.c4
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1complex.c4
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1evp.c12
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1object.c4
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1time.c58
-rw-r--r--src/regress/lib/libcrypto/asn1/rfc5280time.c30
-rw-r--r--src/regress/lib/libcrypto/base64/base64test.c18
-rw-r--r--src/regress/lib/libcrypto/bio/biotest.c10
-rw-r--r--src/regress/lib/libcrypto/bn/general/bntest.c4
-rw-r--r--src/regress/lib/libcrypto/engine/enginetest.c10
-rw-r--r--src/regress/lib/libcrypto/gcm128/gcm128test.c10
-rw-r--r--src/regress/lib/libcrypto/objects/objectstest.c4
12 files changed, 84 insertions, 84 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1basic.c b/src/regress/lib/libcrypto/asn1/asn1basic.c
index 6ce27a2706..45f61ed859 100644
--- a/src/regress/lib/libcrypto/asn1/asn1basic.c
+++ b/src/regress/lib/libcrypto/asn1/asn1basic.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1basic.c,v 1.11 2022/09/03 18:54:36 jsing Exp $ */ 1/* $OpenBSD: asn1basic.c,v 1.12 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -41,7 +41,7 @@ asn1_compare_bytes(const char *label, const unsigned char *d1, int len1,
41{ 41{
42 if (len1 != len2) { 42 if (len1 != len2) {
43 fprintf(stderr, "FAIL: %s - byte lengths differ " 43 fprintf(stderr, "FAIL: %s - byte lengths differ "
44 "(%i != %i)\n", label, len1, len2); 44 "(%d != %d)\n", label, len1, len2);
45 fprintf(stderr, "Got:\n"); 45 fprintf(stderr, "Got:\n");
46 hexdump(d1, len1); 46 hexdump(d1, len1);
47 fprintf(stderr, "Want:\n"); 47 fprintf(stderr, "Want:\n");
diff --git a/src/regress/lib/libcrypto/asn1/asn1complex.c b/src/regress/lib/libcrypto/asn1/asn1complex.c
index e75ebc753e..6f34154b7f 100644
--- a/src/regress/lib/libcrypto/asn1/asn1complex.c
+++ b/src/regress/lib/libcrypto/asn1/asn1complex.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1complex.c,v 1.3 2022/04/28 18:36:38 jsing Exp $ */ 1/* $OpenBSD: asn1complex.c,v 1.4 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -40,7 +40,7 @@ asn1_compare_bytes(const char *label, const unsigned char *d1, int len1,
40{ 40{
41 if (len1 != len2) { 41 if (len1 != len2) {
42 fprintf(stderr, "FAIL: %s - byte lengths differ " 42 fprintf(stderr, "FAIL: %s - byte lengths differ "
43 "(%i != %i)\n", label, len1, len2); 43 "(%d != %d)\n", label, len1, len2);
44 return 0; 44 return 0;
45 } 45 }
46 if (memcmp(d1, d2, len1) != 0) { 46 if (memcmp(d1, d2, len1) != 0) {
diff --git a/src/regress/lib/libcrypto/asn1/asn1evp.c b/src/regress/lib/libcrypto/asn1/asn1evp.c
index 7e290d5db8..0bf0a5fb9e 100644
--- a/src/regress/lib/libcrypto/asn1/asn1evp.c
+++ b/src/regress/lib/libcrypto/asn1/asn1evp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1evp.c,v 1.4 2021/04/06 16:30:27 tb Exp $ */ 1/* $OpenBSD: asn1evp.c,v 1.5 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -84,12 +84,12 @@ main(int argc, char **argv)
84 goto done; 84 goto done;
85 } 85 }
86 if (at->type != V_ASN1_SEQUENCE) { 86 if (at->type != V_ASN1_SEQUENCE) {
87 fprintf(stderr, "FAIL: not a V_ASN1_SEQUENCE (%i != %i)\n", 87 fprintf(stderr, "FAIL: not a V_ASN1_SEQUENCE (%d != %d)\n",
88 at->type, V_ASN1_SEQUENCE); 88 at->type, V_ASN1_SEQUENCE);
89 goto done; 89 goto done;
90 } 90 }
91 if (at->value.sequence->type != V_ASN1_OCTET_STRING) { 91 if (at->value.sequence->type != V_ASN1_OCTET_STRING) {
92 fprintf(stderr, "FAIL: not a V_ASN1_OCTET_STRING (%i != %i)\n", 92 fprintf(stderr, "FAIL: not a V_ASN1_OCTET_STRING (%d != %d)\n",
93 at->type, V_ASN1_OCTET_STRING); 93 at->type, V_ASN1_OCTET_STRING);
94 goto done; 94 goto done;
95 } 95 }
@@ -106,7 +106,7 @@ main(int argc, char **argv)
106 goto done; 106 goto done;
107 } 107 }
108 if (num != TEST_NUM) { 108 if (num != TEST_NUM) {
109 fprintf(stderr, "FAIL: got num %li, want %li\n", num, TEST_NUM); 109 fprintf(stderr, "FAIL: got num %ld, want %ld\n", num, TEST_NUM);
110 goto done; 110 goto done;
111 } 111 }
112 if (compare_data("octet string", data, len, 112 if (compare_data("octet string", data, len,
@@ -126,11 +126,11 @@ main(int argc, char **argv)
126 goto done; 126 goto done;
127 } 127 }
128 if (num != TEST_NUM) { 128 if (num != TEST_NUM) {
129 fprintf(stderr, "FAIL: got num %li, want %li\n", num, TEST_NUM); 129 fprintf(stderr, "FAIL: got num %ld, want %ld\n", num, TEST_NUM);
130 goto done; 130 goto done;
131 } 131 }
132 if (len != sizeof(test_octetstring)) { 132 if (len != sizeof(test_octetstring)) {
133 fprintf(stderr, "FAIL: got length mismatch (%i != %zu)\n", 133 fprintf(stderr, "FAIL: got length mismatch (%d != %zu)\n",
134 len, sizeof(test_octetstring)); 134 len, sizeof(test_octetstring));
135 goto done; 135 goto done;
136 } 136 }
diff --git a/src/regress/lib/libcrypto/asn1/asn1object.c b/src/regress/lib/libcrypto/asn1/asn1object.c
index dee7c2410a..3452a713a0 100644
--- a/src/regress/lib/libcrypto/asn1/asn1object.c
+++ b/src/regress/lib/libcrypto/asn1/asn1object.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1object.c,v 1.8 2022/06/22 09:54:19 tb Exp $ */ 1/* $OpenBSD: asn1object.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -41,7 +41,7 @@ asn1_compare_bytes(const char *label, const unsigned char *d1, int len1,
41{ 41{
42 if (len1 != len2) { 42 if (len1 != len2) {
43 fprintf(stderr, "FAIL: %s - byte lengths differ " 43 fprintf(stderr, "FAIL: %s - byte lengths differ "
44 "(%i != %i)\n", label, len1, len2); 44 "(%d != %d)\n", label, len1, len2);
45 fprintf(stderr, "Got:\n"); 45 fprintf(stderr, "Got:\n");
46 hexdump(d1, len1); 46 hexdump(d1, len1);
47 fprintf(stderr, "Want:\n"); 47 fprintf(stderr, "Want:\n");
diff --git a/src/regress/lib/libcrypto/asn1/asn1time.c b/src/regress/lib/libcrypto/asn1/asn1time.c
index 184256d664..0adac08300 100644
--- a/src/regress/lib/libcrypto/asn1/asn1time.c
+++ b/src/regress/lib/libcrypto/asn1/asn1time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1time.c,v 1.15 2022/09/05 20:53:01 tb Exp $ */ 1/* $OpenBSD: asn1time.c,v 1.16 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -195,12 +195,12 @@ asn1_compare_bytes(int test_no, const unsigned char *d1,
195 const unsigned char *d2, int len1, int len2) 195 const unsigned char *d2, int len1, int len2)
196{ 196{
197 if (len1 != len2) { 197 if (len1 != len2) {
198 fprintf(stderr, "FAIL: test %i - byte lengths differ " 198 fprintf(stderr, "FAIL: test %d - byte lengths differ "
199 "(%i != %i)\n", test_no, len1, len2); 199 "(%d != %d)\n", test_no, len1, len2);
200 return (1); 200 return (1);
201 } 201 }
202 if (memcmp(d1, d2, len1) != 0) { 202 if (memcmp(d1, d2, len1) != 0) {
203 fprintf(stderr, "FAIL: test %i - bytes differ\n", test_no); 203 fprintf(stderr, "FAIL: test %d - bytes differ\n", test_no);
204 fprintf(stderr, "Got:\n"); 204 fprintf(stderr, "Got:\n");
205 hexdump(d1, len1); 205 hexdump(d1, len1);
206 fprintf(stderr, "Want:\n"); 206 fprintf(stderr, "Want:\n");
@@ -216,12 +216,12 @@ asn1_compare_str(int test_no, struct asn1_string_st *asn1str, const char *str)
216 int length = strlen(str); 216 int length = strlen(str);
217 217
218 if (asn1str->length != length) { 218 if (asn1str->length != length) {
219 fprintf(stderr, "FAIL: test %i - string lengths differ " 219 fprintf(stderr, "FAIL: test %d - string lengths differ "
220 "(%i != %i)\n", test_no, asn1str->length, length); 220 "(%d != %d)\n", test_no, asn1str->length, length);
221 return (1); 221 return (1);
222 } 222 }
223 if (strncmp(asn1str->data, str, length) != 0) { 223 if (strncmp(asn1str->data, str, length) != 0) {
224 fprintf(stderr, "FAIL: test %i - strings differ " 224 fprintf(stderr, "FAIL: test %d - strings differ "
225 "('%s' != '%s')\n", test_no, asn1str->data, str); 225 "('%s' != '%s')\n", test_no, asn1str->data, str);
226 return (1); 226 return (1);
227 } 227 }
@@ -245,7 +245,7 @@ asn1_invtime_test(int test_no, struct asn1_time_test *att, int gen)
245 goto done; 245 goto done;
246 246
247 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) { 247 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
248 fprintf(stderr, "FAIL: test %i - successfully set " 248 fprintf(stderr, "FAIL: test %d - successfully set "
249 "GENERALIZEDTIME string '%s'\n", test_no, att->str); 249 "GENERALIZEDTIME string '%s'\n", test_no, att->str);
250 goto done; 250 goto done;
251 } 251 }
@@ -256,17 +256,17 @@ asn1_invtime_test(int test_no, struct asn1_time_test *att, int gen)
256 } 256 }
257 257
258 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) { 258 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
259 fprintf(stderr, "FAIL: test %i - successfully set UTCTIME " 259 fprintf(stderr, "FAIL: test %d - successfully set UTCTIME "
260 "string '%s'\n", test_no, att->str); 260 "string '%s'\n", test_no, att->str);
261 goto done; 261 goto done;
262 } 262 }
263 if (ASN1_TIME_set_string(t, att->str) != 0) { 263 if (ASN1_TIME_set_string(t, att->str) != 0) {
264 fprintf(stderr, "FAIL: test %i - successfully set TIME " 264 fprintf(stderr, "FAIL: test %d - successfully set TIME "
265 "string '%s'\n", test_no, att->str); 265 "string '%s'\n", test_no, att->str);
266 goto done; 266 goto done;
267 } 267 }
268 if (ASN1_TIME_set_string_X509(t, att->str) != 0) { 268 if (ASN1_TIME_set_string_X509(t, att->str) != 0) {
269 fprintf(stderr, "FAIL: test %i - successfully set x509 TIME " 269 fprintf(stderr, "FAIL: test %d - successfully set x509 TIME "
270 "string '%s'\n", test_no, att->str); 270 "string '%s'\n", test_no, att->str);
271 goto done; 271 goto done;
272 } 272 }
@@ -292,7 +292,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
292 struct tm tm; 292 struct tm tm;
293 293
294 if (ASN1_GENERALIZEDTIME_set_string(NULL, att->str) != 1) { 294 if (ASN1_GENERALIZEDTIME_set_string(NULL, att->str) != 1) {
295 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 295 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
296 test_no, att->str); 296 test_no, att->str);
297 goto done; 297 goto done;
298 } 298 }
@@ -301,7 +301,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
301 goto done; 301 goto done;
302 302
303 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) { 303 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
304 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 304 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
305 test_no, att->str); 305 test_no, att->str);
306 goto done; 306 goto done;
307 } 307 }
@@ -309,7 +309,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
309 goto done; 309 goto done;
310 310
311 if (ASN1_TIME_to_tm(gt, &tm) == 0) { 311 if (ASN1_TIME_to_tm(gt, &tm) == 0) {
312 fprintf(stderr, "FAIL: test %i - ASN1_time_to_tm failed '%s'\n", 312 fprintf(stderr, "FAIL: test %d - ASN1_time_to_tm failed '%s'\n",
313 test_no, att->str); 313 test_no, att->str);
314 goto done; 314 goto done;
315 } 315 }
@@ -318,13 +318,13 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
318 /* things with crappy time_t should die in fire */ 318 /* things with crappy time_t should die in fire */
319 int64_t a = timegm(&tm); 319 int64_t a = timegm(&tm);
320 int64_t b = att->time; 320 int64_t b = att->time;
321 fprintf(stderr, "FAIL: test %i - times don't match, expected %lld got %lld\n", 321 fprintf(stderr, "FAIL: test %d - times don't match, expected %lld got %lld\n",
322 test_no, (long long)b, (long long)a); 322 test_no, (long long)b, (long long)a);
323 goto done; 323 goto done;
324 } 324 }
325 325
326 if ((len = i2d_ASN1_GENERALIZEDTIME(gt, &p)) <= 0) { 326 if ((len = i2d_ASN1_GENERALIZEDTIME(gt, &p)) <= 0) {
327 fprintf(stderr, "FAIL: test %i - i2d_ASN1_GENERALIZEDTIME " 327 fprintf(stderr, "FAIL: test %d - i2d_ASN1_GENERALIZEDTIME "
328 "failed\n", test_no); 328 "failed\n", test_no);
329 goto done; 329 goto done;
330 } 330 }
@@ -334,7 +334,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
334 334
335 len = strlen(att->der); 335 len = strlen(att->der);
336 if (d2i_ASN1_GENERALIZEDTIME(&gt, &der, len) == NULL) { 336 if (d2i_ASN1_GENERALIZEDTIME(&gt, &der, len) == NULL) {
337 fprintf(stderr, "FAIL: test %i - d2i_ASN1_GENERALIZEDTIME " 337 fprintf(stderr, "FAIL: test %d - d2i_ASN1_GENERALIZEDTIME "
338 "failed\n", test_no); 338 "failed\n", test_no);
339 goto done; 339 goto done;
340 } 340 }
@@ -344,7 +344,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
344 ASN1_GENERALIZEDTIME_free(gt); 344 ASN1_GENERALIZEDTIME_free(gt);
345 345
346 if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) { 346 if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) {
347 fprintf(stderr, "FAIL: test %i - failed to set time %lli\n", 347 fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
348 test_no, (long long)att->time); 348 test_no, (long long)att->time);
349 goto done; 349 goto done;
350 } 350 }
@@ -370,7 +370,7 @@ asn1_utctime_test(int test_no, struct asn1_time_test *att)
370 int len; 370 int len;
371 371
372 if (ASN1_UTCTIME_set_string(NULL, att->str) != 1) { 372 if (ASN1_UTCTIME_set_string(NULL, att->str) != 1) {
373 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 373 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
374 test_no, att->str); 374 test_no, att->str);
375 goto done; 375 goto done;
376 } 376 }
@@ -379,7 +379,7 @@ asn1_utctime_test(int test_no, struct asn1_time_test *att)
379 goto done; 379 goto done;
380 380
381 if (ASN1_UTCTIME_set_string(ut, att->str) != 1) { 381 if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
382 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 382 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
383 test_no, att->str); 383 test_no, att->str);
384 goto done; 384 goto done;
385 } 385 }
@@ -387,7 +387,7 @@ asn1_utctime_test(int test_no, struct asn1_time_test *att)
387 goto done; 387 goto done;
388 388
389 if ((len = i2d_ASN1_UTCTIME(ut, &p)) <= 0) { 389 if ((len = i2d_ASN1_UTCTIME(ut, &p)) <= 0) {
390 fprintf(stderr, "FAIL: test %i - i2d_ASN1_UTCTIME failed\n", 390 fprintf(stderr, "FAIL: test %d - i2d_ASN1_UTCTIME failed\n",
391 test_no); 391 test_no);
392 goto done; 392 goto done;
393 } 393 }
@@ -397,7 +397,7 @@ asn1_utctime_test(int test_no, struct asn1_time_test *att)
397 397
398 len = strlen(att->der); 398 len = strlen(att->der);
399 if (d2i_ASN1_UTCTIME(&ut, &der, len) == NULL) { 399 if (d2i_ASN1_UTCTIME(&ut, &der, len) == NULL) {
400 fprintf(stderr, "FAIL: test %i - d2i_ASN1_UTCTIME failed\n", 400 fprintf(stderr, "FAIL: test %d - d2i_ASN1_UTCTIME failed\n",
401 test_no); 401 test_no);
402 goto done; 402 goto done;
403 } 403 }
@@ -407,7 +407,7 @@ asn1_utctime_test(int test_no, struct asn1_time_test *att)
407 ASN1_UTCTIME_free(ut); 407 ASN1_UTCTIME_free(ut);
408 408
409 if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) { 409 if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) {
410 fprintf(stderr, "FAIL: test %i - failed to set time %lli\n", 410 fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
411 test_no, (long long)att->time); 411 test_no, (long long)att->time);
412 goto done; 412 goto done;
413 } 413 }
@@ -430,7 +430,7 @@ asn1_time_test(int test_no, struct asn1_time_test *att, int type)
430 int failure = 1; 430 int failure = 1;
431 431
432 if (ASN1_TIME_set_string(NULL, att->str) != 1) { 432 if (ASN1_TIME_set_string(NULL, att->str) != 1) {
433 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 433 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
434 test_no, att->str); 434 test_no, att->str);
435 goto done; 435 goto done;
436 } 436 }
@@ -442,31 +442,31 @@ asn1_time_test(int test_no, struct asn1_time_test *att, int type)
442 goto done; 442 goto done;
443 443
444 if (ASN1_TIME_set_string(t, att->str) != 1) { 444 if (ASN1_TIME_set_string(t, att->str) != 1) {
445 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 445 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
446 test_no, att->str); 446 test_no, att->str);
447 goto done; 447 goto done;
448 } 448 }
449 449
450 if (t->type != type) { 450 if (t->type != type) {
451 fprintf(stderr, "FAIL: test %i - got type %i, want %i\n", 451 fprintf(stderr, "FAIL: test %d - got type %d, want %d\n",
452 test_no, t->type, type); 452 test_no, t->type, type);
453 goto done; 453 goto done;
454 } 454 }
455 455
456 if (ASN1_TIME_normalize(t) != 1) { 456 if (ASN1_TIME_normalize(t) != 1) {
457 fprintf(stderr, "FAIL: test %i - failed to set normalize '%s'\n", 457 fprintf(stderr, "FAIL: test %d - failed to set normalize '%s'\n",
458 test_no, att->str); 458 test_no, att->str);
459 goto done; 459 goto done;
460 } 460 }
461 461
462 if (ASN1_TIME_set_string_X509(tx509, t->data) != 1) { 462 if (ASN1_TIME_set_string_X509(tx509, t->data) != 1) {
463 fprintf(stderr, "FAIL: test %i - failed to set string X509 '%s'\n", 463 fprintf(stderr, "FAIL: test %d - failed to set string X509 '%s'\n",
464 test_no, t->data); 464 test_no, t->data);
465 goto done; 465 goto done;
466 } 466 }
467 467
468 if (t->type != tx509->type) { 468 if (t->type != tx509->type) {
469 fprintf(stderr, "FAIL: test %i - type %d, different from %d\n", 469 fprintf(stderr, "FAIL: test %d - type %d, different from %d\n",
470 test_no, t->type, tx509->type); 470 test_no, t->type, tx509->type);
471 goto done; 471 goto done;
472 } 472 }
diff --git a/src/regress/lib/libcrypto/asn1/rfc5280time.c b/src/regress/lib/libcrypto/asn1/rfc5280time.c
index 34e40439dc..f9b561e5c9 100644
--- a/src/regress/lib/libcrypto/asn1/rfc5280time.c
+++ b/src/regress/lib/libcrypto/asn1/rfc5280time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rfc5280time.c,v 1.4 2015/10/30 15:52:55 miod Exp $ */ 1/* $OpenBSD: rfc5280time.c,v 1.5 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org> 4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org>
@@ -191,12 +191,12 @@ asn1_compare_str(int test_no, struct asn1_string_st *asn1str, const char *str)
191 int length = strlen(str); 191 int length = strlen(str);
192 192
193 if (asn1str->length != length) { 193 if (asn1str->length != length) {
194 fprintf(stderr, "FAIL: test %i - string lengths differ " 194 fprintf(stderr, "FAIL: test %d - string lengths differ "
195 "(%i != %i)\n", test_no, asn1str->length, length); 195 "(%d != %d)\n", test_no, asn1str->length, length);
196 return (1); 196 return (1);
197 } 197 }
198 if (strncmp(asn1str->data, str, length) != 0) { 198 if (strncmp(asn1str->data, str, length) != 0) {
199 fprintf(stderr, "FAIL: test %i - strings differ " 199 fprintf(stderr, "FAIL: test %d - strings differ "
200 "('%s' != '%s')\n", test_no, asn1str->data, str); 200 "('%s' != '%s')\n", test_no, asn1str->data, str);
201 return (1); 201 return (1);
202 } 202 }
@@ -222,21 +222,21 @@ rfc5280_invtime_test(int test_no, struct rfc5280_time_test *att)
222 222
223 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) { 223 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
224 if (X509_cmp_time(gt, &now) != 0) { 224 if (X509_cmp_time(gt, &now) != 0) {
225 fprintf(stderr, "FAIL: test %i - successfully parsed as GENTIME " 225 fprintf(stderr, "FAIL: test %d - successfully parsed as GENTIME "
226 "string '%s'\n", test_no, att->str); 226 "string '%s'\n", test_no, att->str);
227 goto done; 227 goto done;
228 } 228 }
229 } 229 }
230 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) { 230 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
231 if (X509_cmp_time(ut, &now) != 0) { 231 if (X509_cmp_time(ut, &now) != 0) {
232 fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME " 232 fprintf(stderr, "FAIL: test %d - successfully parsed as UTCTIME "
233 "string '%s'\n", test_no, att->str); 233 "string '%s'\n", test_no, att->str);
234 goto done; 234 goto done;
235 } 235 }
236 } 236 }
237 if (ASN1_TIME_set_string(t, att->str) != 0) { 237 if (ASN1_TIME_set_string(t, att->str) != 0) {
238 if (X509_cmp_time(t, &now) != 0) { 238 if (X509_cmp_time(t, &now) != 0) {
239 fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME " 239 fprintf(stderr, "FAIL: test %d - successfully parsed as UTCTIME "
240 "string '%s'\n", test_no, att->str); 240 "string '%s'\n", test_no, att->str);
241 goto done; 241 goto done;
242 } 242 }
@@ -264,7 +264,7 @@ rfc5280_gentime_test(int test_no, struct rfc5280_time_test *att)
264 goto done; 264 goto done;
265 265
266 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) { 266 if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
267 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 267 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
268 test_no, att->str); 268 test_no, att->str);
269 goto done; 269 goto done;
270 } 270 }
@@ -272,14 +272,14 @@ rfc5280_gentime_test(int test_no, struct rfc5280_time_test *att)
272 goto done; 272 goto done;
273 273
274 if ((i = X509_cmp_time(gt, &att->time)) != -1) { 274 if ((i = X509_cmp_time(gt, &att->time)) != -1) {
275 fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n", 275 fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
276 test_no, i, att->time); 276 test_no, i, att->time);
277 goto done; 277 goto done;
278 } 278 }
279 279
280 att->time--; 280 att->time--;
281 if ((i = X509_cmp_time(gt, &att->time)) != 1) { 281 if ((i = X509_cmp_time(gt, &att->time)) != 1) {
282 fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n", 282 fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
283 test_no, i, att->time); 283 test_no, i, att->time);
284 goto done; 284 goto done;
285 } 285 }
@@ -288,7 +288,7 @@ rfc5280_gentime_test(int test_no, struct rfc5280_time_test *att)
288 ASN1_GENERALIZEDTIME_free(gt); 288 ASN1_GENERALIZEDTIME_free(gt);
289 289
290 if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) { 290 if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) {
291 fprintf(stderr, "FAIL: test %i - failed to set time %lli\n", 291 fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
292 test_no, (long long)att->time); 292 test_no, (long long)att->time);
293 goto done; 293 goto done;
294 } 294 }
@@ -316,7 +316,7 @@ rfc5280_utctime_test(int test_no, struct rfc5280_time_test *att)
316 goto done; 316 goto done;
317 317
318 if (ASN1_UTCTIME_set_string(ut, att->str) != 1) { 318 if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
319 fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n", 319 fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
320 test_no, att->str); 320 test_no, att->str);
321 goto done; 321 goto done;
322 } 322 }
@@ -324,14 +324,14 @@ rfc5280_utctime_test(int test_no, struct rfc5280_time_test *att)
324 goto done; 324 goto done;
325 325
326 if ((i = X509_cmp_time(ut, &att->time)) != -1) { 326 if ((i = X509_cmp_time(ut, &att->time)) != -1) {
327 fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n", 327 fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
328 test_no, i, att->time); 328 test_no, i, att->time);
329 goto done; 329 goto done;
330 } 330 }
331 331
332 att->time--; 332 att->time--;
333 if ((i = X509_cmp_time(ut, &att->time)) != 1) { 333 if ((i = X509_cmp_time(ut, &att->time)) != 1) {
334 fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n", 334 fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
335 test_no, i, att->time); 335 test_no, i, att->time);
336 goto done; 336 goto done;
337 } 337 }
@@ -340,7 +340,7 @@ rfc5280_utctime_test(int test_no, struct rfc5280_time_test *att)
340 ASN1_UTCTIME_free(ut); 340 ASN1_UTCTIME_free(ut);
341 341
342 if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) { 342 if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) {
343 fprintf(stderr, "FAIL: test %i - failed to set time %lli\n", 343 fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
344 test_no, (long long)att->time); 344 test_no, (long long)att->time);
345 goto done; 345 goto done;
346 } 346 }
diff --git a/src/regress/lib/libcrypto/base64/base64test.c b/src/regress/lib/libcrypto/base64/base64test.c
index a05bc10754..9ab2a40703 100644
--- a/src/regress/lib/libcrypto/base64/base64test.c
+++ b/src/regress/lib/libcrypto/base64/base64test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: base64test.c,v 1.9 2021/03/21 14:06:29 tb Exp $ */ 1/* $OpenBSD: base64test.c,v 1.10 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -304,13 +304,13 @@ base64_encoding_test(int test_no, struct base64_test *bt, int test_nl)
304 304
305 len = BIO_write(bio_mem, bt->in, bt->in_len); 305 len = BIO_write(bio_mem, bt->in, bt->in_len);
306 if (len != bt->in_len) { 306 if (len != bt->in_len) {
307 fprintf(stderr, "FAIL: test %i - only wrote %zi out of %zi " 307 fprintf(stderr, "FAIL: test %d - only wrote %zd out of %zd "
308 "characters\n", test_no, len, bt->in_len); 308 "characters\n", test_no, len, bt->in_len);
309 failure = 1; 309 failure = 1;
310 goto done; 310 goto done;
311 } 311 }
312 if (BIO_flush(bio_mem) < 0) { 312 if (BIO_flush(bio_mem) < 0) {
313 fprintf(stderr, "FAIL: test %i - flush failed\n", test_no); 313 fprintf(stderr, "FAIL: test %d - flush failed\n", test_no);
314 failure = 1; 314 failure = 1;
315 goto done; 315 goto done;
316 } 316 }
@@ -333,14 +333,14 @@ base64_encoding_test(int test_no, struct base64_test *bt, int test_nl)
333 goto done; 333 goto done;
334 334
335 if (len != b64len) { 335 if (len != b64len) {
336 fprintf(stderr, "FAIL: test %i - encoding resulted in %zi " 336 fprintf(stderr, "FAIL: test %d - encoding resulted in %zd "
337 "characters instead of %zi\n", test_no, len, b64len); 337 "characters instead of %zd\n", test_no, len, b64len);
338 failure = 1; 338 failure = 1;
339 goto done; 339 goto done;
340 } 340 }
341 341
342 if (memcmp(buf, out, b64len) != 0) { 342 if (memcmp(buf, out, b64len) != 0) {
343 fprintf(stderr, "FAIL: test %i - encoding differs:\n", test_no); 343 fprintf(stderr, "FAIL: test %d - encoding differs:\n", test_no);
344 fprintf(stderr, " encoding: "); 344 fprintf(stderr, " encoding: ");
345 for (i = 0; i < len; i++) 345 for (i = 0; i < len; i++)
346 fprintf(stderr, "%c", out[i]); 346 fprintf(stderr, "%c", out[i]);
@@ -400,8 +400,8 @@ base64_decoding_test(int test_no, struct base64_test *bt, int test_nl)
400 */ 400 */
401 len = BIO_read(bio_mem, buf, BUF_SIZE); 401 len = BIO_read(bio_mem, buf, BUF_SIZE);
402 if (len != bt->valid_len && (bt->in_len != 0 || len != -1)) { 402 if (len != bt->valid_len && (bt->in_len != 0 || len != -1)) {
403 fprintf(stderr, "FAIL: test %i - decoding resulted in %zi " 403 fprintf(stderr, "FAIL: test %d - decoding resulted in %zd "
404 "characters instead of %zi\n", test_no, len, bt->valid_len); 404 "characters instead of %zd\n", test_no, len, bt->valid_len);
405 fprintf(stderr, " input: "); 405 fprintf(stderr, " input: ");
406 for (i = 0; i < inlen; i++) 406 for (i = 0; i < inlen; i++)
407 fprintf(stderr, "%c", input[i]); 407 fprintf(stderr, "%c", input[i]);
@@ -419,7 +419,7 @@ base64_decoding_test(int test_no, struct base64_test *bt, int test_nl)
419 goto done; 419 goto done;
420 420
421 if (memcmp(bt->in, buf, bt->in_len) != 0) { 421 if (memcmp(bt->in, buf, bt->in_len) != 0) {
422 fprintf(stderr, "FAIL: test %i - decoding differs:\n", test_no); 422 fprintf(stderr, "FAIL: test %d - decoding differs:\n", test_no);
423 fprintf(stderr, " decoding: "); 423 fprintf(stderr, " decoding: ");
424 for (i = 0; i < len; i++) 424 for (i = 0; i < len; i++)
425 fprintf(stderr, "0x%x ", buf[i]); 425 fprintf(stderr, "0x%x ", buf[i]);
diff --git a/src/regress/lib/libcrypto/bio/biotest.c b/src/regress/lib/libcrypto/bio/biotest.c
index d31e51e454..531913461a 100644
--- a/src/regress/lib/libcrypto/bio/biotest.c
+++ b/src/regress/lib/libcrypto/bio/biotest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: biotest.c,v 1.8 2022/02/19 16:00:57 jsing Exp $ */ 1/* $OpenBSD: biotest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2014, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -97,14 +97,14 @@ do_bio_get_host_ip_tests(void)
97 97
98 ret = BIO_get_host_ip(bgit->input, ip.c); 98 ret = BIO_get_host_ip(bgit->input, ip.c);
99 if (ret != bgit->ret) { 99 if (ret != bgit->ret) {
100 fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n", 100 fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n",
101 i, bgit->input, ret ? "success" : "failure", 101 i, bgit->input, ret ? "success" : "failure",
102 bgit->ret ? "success" : "failure"); 102 bgit->ret ? "success" : "failure");
103 failed = 1; 103 failed = 1;
104 continue; 104 continue;
105 } 105 }
106 if (ret && ntohl(ip.i) != bgit->ip) { 106 if (ret && ntohl(ip.i) != bgit->ip) {
107 fprintf(stderr, "FAIL: test %zi (\"%s\") returned ip " 107 fprintf(stderr, "FAIL: test %zd (\"%s\") returned ip "
108 "%x != %x\n", i, bgit->input, 108 "%x != %x\n", i, bgit->input,
109 ntohl(ip.i), bgit->ip); 109 ntohl(ip.i), bgit->ip);
110 failed = 1; 110 failed = 1;
@@ -129,14 +129,14 @@ do_bio_get_port_tests(void)
129 129
130 ret = BIO_get_port(bgpt->input, &port); 130 ret = BIO_get_port(bgpt->input, &port);
131 if (ret != bgpt->ret) { 131 if (ret != bgpt->ret) {
132 fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n", 132 fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n",
133 i, bgpt->input, ret ? "success" : "failure", 133 i, bgpt->input, ret ? "success" : "failure",
134 bgpt->ret ? "success" : "failure"); 134 bgpt->ret ? "success" : "failure");
135 failed = 1; 135 failed = 1;
136 continue; 136 continue;
137 } 137 }
138 if (ret && port != bgpt->port) { 138 if (ret && port != bgpt->port) {
139 fprintf(stderr, "FAIL: test %zi (\"%s\") returned port " 139 fprintf(stderr, "FAIL: test %zd (\"%s\") returned port "
140 "%u != %u\n", i, bgpt->input, port, bgpt->port); 140 "%u != %u\n", i, bgpt->input, port, bgpt->port);
141 failed = 1; 141 failed = 1;
142 } 142 }
diff --git a/src/regress/lib/libcrypto/bn/general/bntest.c b/src/regress/lib/libcrypto/bn/general/bntest.c
index 53cce74ae0..b9581a0cd9 100644
--- a/src/regress/lib/libcrypto/bn/general/bntest.c
+++ b/src/regress/lib/libcrypto/bn/general/bntest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bntest.c,v 1.24 2021/12/29 23:00:32 tb Exp $ */ 1/* $OpenBSD: bntest.c,v 1.25 2022/09/05 21:06:31 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2133,7 +2133,7 @@ test_gf2m_mod_solve_quad(BIO *bp, BN_CTX *ctx)
2133 } 2133 }
2134 } 2134 }
2135 if (s == 0) { 2135 if (s == 0) {
2136 fprintf(stderr, "All %i tests of GF(2^m) modular solve quadratic resulted in no roots;\n", num0); 2136 fprintf(stderr, "All %d tests of GF(2^m) modular solve quadratic resulted in no roots;\n", num0);
2137 fprintf(stderr, "this is very unlikely and probably indicates an error.\n"); 2137 fprintf(stderr, "this is very unlikely and probably indicates an error.\n");
2138 goto err; 2138 goto err;
2139 } 2139 }
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c
index 123866259b..40e598ab77 100644
--- a/src/regress/lib/libcrypto/engine/enginetest.c
+++ b/src/regress/lib/libcrypto/engine/enginetest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enginetest.c,v 1.8 2018/07/17 17:06:49 tb Exp $ */ 1/* $OpenBSD: enginetest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL 2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -73,7 +73,7 @@ static void display_engine_list(void)
73 loop = 0; 73 loop = 0;
74 printf("listing available engine types\n"); 74 printf("listing available engine types\n");
75 while (h) { 75 while (h) {
76 printf("engine %i, id = \"%s\", name = \"%s\"\n", 76 printf("engine %d, id = \"%s\", name = \"%s\"\n",
77 loop++, ENGINE_get_id(h), ENGINE_get_name(h)); 77 loop++, ENGINE_get_id(h), ENGINE_get_name(h));
78 h = ENGINE_get_next(h); 78 h = ENGINE_get_next(h);
79 } 79 }
@@ -188,9 +188,9 @@ int main(int argc, char *argv[])
188 188
189 printf("About to beef up the engine-type list\n"); 189 printf("About to beef up the engine-type list\n");
190 for (loop = 0; loop < 512; loop++) { 190 for (loop = 0; loop < 512; loop++) {
191 if (asprintf(&id, "id%i", loop) == -1) 191 if (asprintf(&id, "id%d", loop) == -1)
192 goto end; 192 goto end;
193 if (asprintf(&name, "Fake engine type %i", loop) == -1) 193 if (asprintf(&name, "Fake engine type %d", loop) == -1)
194 goto end; 194 goto end;
195 195
196 if (((block[loop] = ENGINE_new()) == NULL) || 196 if (((block[loop] = ENGINE_new()) == NULL) ||
@@ -203,7 +203,7 @@ int main(int argc, char *argv[])
203 203
204 for (loop = 0; loop < 512; loop++) { 204 for (loop = 0; loop < 512; loop++) {
205 if (!ENGINE_add(block[loop])) { 205 if (!ENGINE_add(block[loop])) {
206 printf("\nAdding stopped at %i, (%s,%s)\n", 206 printf("\nAdding stopped at %d, (%s,%s)\n",
207 loop, ENGINE_get_id(block[loop]), 207 loop, ENGINE_get_id(block[loop]),
208 ENGINE_get_name(block[loop])); 208 ENGINE_get_name(block[loop]));
209 break; 209 break;
diff --git a/src/regress/lib/libcrypto/gcm128/gcm128test.c b/src/regress/lib/libcrypto/gcm128/gcm128test.c
index 07c6128c0f..def7653c7b 100644
--- a/src/regress/lib/libcrypto/gcm128/gcm128test.c
+++ b/src/regress/lib/libcrypto/gcm128/gcm128test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gcm128test.c,v 1.6 2018/07/17 17:06:49 tb Exp $ */ 1/* $OpenBSD: gcm128test.c,v 1.7 2022/09/05 21:06:31 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -880,12 +880,12 @@ do_gcm128_test(int test_no, struct gcm128_test *tv)
880 if (tv->P_len > 0) 880 if (tv->P_len > 0)
881 CRYPTO_gcm128_encrypt(&ctx, tv->P, out, out_len); 881 CRYPTO_gcm128_encrypt(&ctx, tv->P, out, out_len);
882 if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) { 882 if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) {
883 fprintf(stderr, "TEST %i: CRYPTO_gcm128_finish failed\n", 883 fprintf(stderr, "TEST %d: CRYPTO_gcm128_finish failed\n",
884 test_no); 884 test_no);
885 goto fail; 885 goto fail;
886 } 886 }
887 if (tv->C_len > 0 && memcmp(out, tv->C, out_len)) { 887 if (tv->C_len > 0 && memcmp(out, tv->C, out_len)) {
888 fprintf(stderr, "TEST %i: encrypt failed\n", test_no); 888 fprintf(stderr, "TEST %d: encrypt failed\n", test_no);
889 goto fail; 889 goto fail;
890 } 890 }
891 891
@@ -897,12 +897,12 @@ do_gcm128_test(int test_no, struct gcm128_test *tv)
897 if (tv->C_len > 0) 897 if (tv->C_len > 0)
898 CRYPTO_gcm128_decrypt(&ctx, tv->C, out, out_len); 898 CRYPTO_gcm128_decrypt(&ctx, tv->C, out, out_len);
899 if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) { 899 if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) {
900 fprintf(stderr, "TEST %i: CRYPTO_gcm128_finish failed\n", 900 fprintf(stderr, "TEST %d: CRYPTO_gcm128_finish failed\n",
901 test_no); 901 test_no);
902 goto fail; 902 goto fail;
903 } 903 }
904 if (tv->P_len > 0 && memcmp(out, tv->P, out_len)) { 904 if (tv->P_len > 0 && memcmp(out, tv->P, out_len)) {
905 fprintf(stderr, "TEST %i: decrypt failed\n", test_no); 905 fprintf(stderr, "TEST %d: decrypt failed\n", test_no);
906 goto fail; 906 goto fail;
907 } 907 }
908 908
diff --git a/src/regress/lib/libcrypto/objects/objectstest.c b/src/regress/lib/libcrypto/objects/objectstest.c
index 597373efd2..dba38644cf 100644
--- a/src/regress/lib/libcrypto/objects/objectstest.c
+++ b/src/regress/lib/libcrypto/objects/objectstest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: objectstest.c,v 1.5 2022/02/20 13:47:53 jsing Exp $ */ 1/* $OpenBSD: objectstest.c,v 1.6 2022/09/05 21:06:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -38,7 +38,7 @@ obj_compare_bytes(const char *label, const unsigned char *d1, int len1,
38{ 38{
39 if (len1 != len2) { 39 if (len1 != len2) {
40 fprintf(stderr, "FAIL: %s - byte lengths differ " 40 fprintf(stderr, "FAIL: %s - byte lengths differ "
41 "(%i != %i)\n", label, len1, len2); 41 "(%d != %d)\n", label, len1, len2);
42 fprintf(stderr, "Got:\n"); 42 fprintf(stderr, "Got:\n");
43 hexdump(d1, len1); 43 hexdump(d1, len1);
44 fprintf(stderr, "Want:\n"); 44 fprintf(stderr, "Want:\n");