-/* $OpenBSD: asn1basic.c,v 1.11 2022/09/03 18:54:36 jsing Exp $ */
+/* $OpenBSD: asn1basic.c,v 1.12 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
*
{
if (len1 != len2) {
fprintf(stderr, "FAIL: %s - byte lengths differ "
- "(%i != %i)\n", label, len1, len2);
+ "(%d != %d)\n", label, len1, len2);
fprintf(stderr, "Got:\n");
hexdump(d1, len1);
fprintf(stderr, "Want:\n");
-/* $OpenBSD: asn1complex.c,v 1.3 2022/04/28 18:36:38 jsing Exp $ */
+/* $OpenBSD: asn1complex.c,v 1.4 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
*
{
if (len1 != len2) {
fprintf(stderr, "FAIL: %s - byte lengths differ "
- "(%i != %i)\n", label, len1, len2);
+ "(%d != %d)\n", label, len1, len2);
return 0;
}
if (memcmp(d1, d2, len1) != 0) {
-/* $OpenBSD: asn1evp.c,v 1.4 2021/04/06 16:30:27 tb Exp $ */
+/* $OpenBSD: asn1evp.c,v 1.5 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
*
goto done;
}
if (at->type != V_ASN1_SEQUENCE) {
- fprintf(stderr, "FAIL: not a V_ASN1_SEQUENCE (%i != %i)\n",
+ fprintf(stderr, "FAIL: not a V_ASN1_SEQUENCE (%d != %d)\n",
at->type, V_ASN1_SEQUENCE);
goto done;
}
if (at->value.sequence->type != V_ASN1_OCTET_STRING) {
- fprintf(stderr, "FAIL: not a V_ASN1_OCTET_STRING (%i != %i)\n",
+ fprintf(stderr, "FAIL: not a V_ASN1_OCTET_STRING (%d != %d)\n",
at->type, V_ASN1_OCTET_STRING);
goto done;
}
goto done;
}
if (num != TEST_NUM) {
- fprintf(stderr, "FAIL: got num %li, want %li\n", num, TEST_NUM);
+ fprintf(stderr, "FAIL: got num %ld, want %ld\n", num, TEST_NUM);
goto done;
}
if (compare_data("octet string", data, len,
goto done;
}
if (num != TEST_NUM) {
- fprintf(stderr, "FAIL: got num %li, want %li\n", num, TEST_NUM);
+ fprintf(stderr, "FAIL: got num %ld, want %ld\n", num, TEST_NUM);
goto done;
}
if (len != sizeof(test_octetstring)) {
- fprintf(stderr, "FAIL: got length mismatch (%i != %zu)\n",
+ fprintf(stderr, "FAIL: got length mismatch (%d != %zu)\n",
len, sizeof(test_octetstring));
goto done;
}
-/* $OpenBSD: asn1object.c,v 1.8 2022/06/22 09:54:19 tb Exp $ */
+/* $OpenBSD: asn1object.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org>
*
{
if (len1 != len2) {
fprintf(stderr, "FAIL: %s - byte lengths differ "
- "(%i != %i)\n", label, len1, len2);
+ "(%d != %d)\n", label, len1, len2);
fprintf(stderr, "Got:\n");
hexdump(d1, len1);
fprintf(stderr, "Want:\n");
-/* $OpenBSD: asn1time.c,v 1.15 2022/09/05 20:53:01 tb Exp $ */
+/* $OpenBSD: asn1time.c,v 1.16 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
*
const unsigned char *d2, int len1, int len2)
{
if (len1 != len2) {
- fprintf(stderr, "FAIL: test %i - byte lengths differ "
- "(%i != %i)\n", test_no, len1, len2);
+ fprintf(stderr, "FAIL: test %d - byte lengths differ "
+ "(%d != %d)\n", test_no, len1, len2);
return (1);
}
if (memcmp(d1, d2, len1) != 0) {
- fprintf(stderr, "FAIL: test %i - bytes differ\n", test_no);
+ fprintf(stderr, "FAIL: test %d - bytes differ\n", test_no);
fprintf(stderr, "Got:\n");
hexdump(d1, len1);
fprintf(stderr, "Want:\n");
int length = strlen(str);
if (asn1str->length != length) {
- fprintf(stderr, "FAIL: test %i - string lengths differ "
- "(%i != %i)\n", test_no, asn1str->length, length);
+ fprintf(stderr, "FAIL: test %d - string lengths differ "
+ "(%d != %d)\n", test_no, asn1str->length, length);
return (1);
}
if (strncmp(asn1str->data, str, length) != 0) {
- fprintf(stderr, "FAIL: test %i - strings differ "
+ fprintf(stderr, "FAIL: test %d - strings differ "
"('%s' != '%s')\n", test_no, asn1str->data, str);
return (1);
}
goto done;
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully set "
+ fprintf(stderr, "FAIL: test %d - successfully set "
"GENERALIZEDTIME string '%s'\n", test_no, att->str);
goto done;
}
}
if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully set UTCTIME "
+ fprintf(stderr, "FAIL: test %d - successfully set UTCTIME "
"string '%s'\n", test_no, att->str);
goto done;
}
if (ASN1_TIME_set_string(t, att->str) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully set TIME "
+ fprintf(stderr, "FAIL: test %d - successfully set TIME "
"string '%s'\n", test_no, att->str);
goto done;
}
if (ASN1_TIME_set_string_X509(t, att->str) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully set x509 TIME "
+ fprintf(stderr, "FAIL: test %d - successfully set x509 TIME "
"string '%s'\n", test_no, att->str);
goto done;
}
struct tm tm;
if (ASN1_GENERALIZEDTIME_set_string(NULL, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if (ASN1_TIME_to_tm(gt, &tm) == 0) {
- fprintf(stderr, "FAIL: test %i - ASN1_time_to_tm failed '%s'\n",
+ fprintf(stderr, "FAIL: test %d - ASN1_time_to_tm failed '%s'\n",
test_no, att->str);
goto done;
}
/* things with crappy time_t should die in fire */
int64_t a = timegm(&tm);
int64_t b = att->time;
- fprintf(stderr, "FAIL: test %i - times don't match, expected %lld got %lld\n",
+ fprintf(stderr, "FAIL: test %d - times don't match, expected %lld got %lld\n",
test_no, (long long)b, (long long)a);
goto done;
}
if ((len = i2d_ASN1_GENERALIZEDTIME(gt, &p)) <= 0) {
- fprintf(stderr, "FAIL: test %i - i2d_ASN1_GENERALIZEDTIME "
+ fprintf(stderr, "FAIL: test %d - i2d_ASN1_GENERALIZEDTIME "
"failed\n", test_no);
goto done;
}
len = strlen(att->der);
if (d2i_ASN1_GENERALIZEDTIME(>, &der, len) == NULL) {
- fprintf(stderr, "FAIL: test %i - d2i_ASN1_GENERALIZEDTIME "
+ fprintf(stderr, "FAIL: test %d - d2i_ASN1_GENERALIZEDTIME "
"failed\n", test_no);
goto done;
}
ASN1_GENERALIZEDTIME_free(gt);
if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) {
- fprintf(stderr, "FAIL: test %i - failed to set time %lli\n",
+ fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
test_no, (long long)att->time);
goto done;
}
int len;
if (ASN1_UTCTIME_set_string(NULL, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if ((len = i2d_ASN1_UTCTIME(ut, &p)) <= 0) {
- fprintf(stderr, "FAIL: test %i - i2d_ASN1_UTCTIME failed\n",
+ fprintf(stderr, "FAIL: test %d - i2d_ASN1_UTCTIME failed\n",
test_no);
goto done;
}
len = strlen(att->der);
if (d2i_ASN1_UTCTIME(&ut, &der, len) == NULL) {
- fprintf(stderr, "FAIL: test %i - d2i_ASN1_UTCTIME failed\n",
+ fprintf(stderr, "FAIL: test %d - d2i_ASN1_UTCTIME failed\n",
test_no);
goto done;
}
ASN1_UTCTIME_free(ut);
if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) {
- fprintf(stderr, "FAIL: test %i - failed to set time %lli\n",
+ fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
test_no, (long long)att->time);
goto done;
}
int failure = 1;
if (ASN1_TIME_set_string(NULL, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if (ASN1_TIME_set_string(t, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
if (t->type != type) {
- fprintf(stderr, "FAIL: test %i - got type %i, want %i\n",
+ fprintf(stderr, "FAIL: test %d - got type %d, want %d\n",
test_no, t->type, type);
goto done;
}
if (ASN1_TIME_normalize(t) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set normalize '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set normalize '%s'\n",
test_no, att->str);
goto done;
}
if (ASN1_TIME_set_string_X509(tx509, t->data) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string X509 '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string X509 '%s'\n",
test_no, t->data);
goto done;
}
if (t->type != tx509->type) {
- fprintf(stderr, "FAIL: test %i - type %d, different from %d\n",
+ fprintf(stderr, "FAIL: test %d - type %d, different from %d\n",
test_no, t->type, tx509->type);
goto done;
}
-/* $OpenBSD: rfc5280time.c,v 1.4 2015/10/30 15:52:55 miod Exp $ */
+/* $OpenBSD: rfc5280time.c,v 1.5 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@opebsd.org>
int length = strlen(str);
if (asn1str->length != length) {
- fprintf(stderr, "FAIL: test %i - string lengths differ "
- "(%i != %i)\n", test_no, asn1str->length, length);
+ fprintf(stderr, "FAIL: test %d - string lengths differ "
+ "(%d != %d)\n", test_no, asn1str->length, length);
return (1);
}
if (strncmp(asn1str->data, str, length) != 0) {
- fprintf(stderr, "FAIL: test %i - strings differ "
+ fprintf(stderr, "FAIL: test %d - strings differ "
"('%s' != '%s')\n", test_no, asn1str->data, str);
return (1);
}
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 0) {
if (X509_cmp_time(gt, &now) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully parsed as GENTIME "
+ fprintf(stderr, "FAIL: test %d - successfully parsed as GENTIME "
"string '%s'\n", test_no, att->str);
goto done;
}
}
if (ASN1_UTCTIME_set_string(ut, att->str) != 0) {
if (X509_cmp_time(ut, &now) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME "
+ fprintf(stderr, "FAIL: test %d - successfully parsed as UTCTIME "
"string '%s'\n", test_no, att->str);
goto done;
}
}
if (ASN1_TIME_set_string(t, att->str) != 0) {
if (X509_cmp_time(t, &now) != 0) {
- fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME "
+ fprintf(stderr, "FAIL: test %d - successfully parsed as UTCTIME "
"string '%s'\n", test_no, att->str);
goto done;
}
goto done;
if (ASN1_GENERALIZEDTIME_set_string(gt, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if ((i = X509_cmp_time(gt, &att->time)) != -1) {
- fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n",
+ fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
test_no, i, att->time);
goto done;
}
att->time--;
if ((i = X509_cmp_time(gt, &att->time)) != 1) {
- fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n",
+ fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
test_no, i, att->time);
goto done;
}
ASN1_GENERALIZEDTIME_free(gt);
if ((gt = ASN1_GENERALIZEDTIME_set(NULL, att->time)) == NULL) {
- fprintf(stderr, "FAIL: test %i - failed to set time %lli\n",
+ fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
test_no, (long long)att->time);
goto done;
}
goto done;
if (ASN1_UTCTIME_set_string(ut, att->str) != 1) {
- fprintf(stderr, "FAIL: test %i - failed to set string '%s'\n",
+ fprintf(stderr, "FAIL: test %d - failed to set string '%s'\n",
test_no, att->str);
goto done;
}
goto done;
if ((i = X509_cmp_time(ut, &att->time)) != -1) {
- fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n",
+ fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
test_no, i, att->time);
goto done;
}
att->time--;
if ((i = X509_cmp_time(ut, &att->time)) != 1) {
- fprintf(stderr, "FAIL: test %i - X509_cmp_time failed - returned %d compared to %lld\n",
+ fprintf(stderr, "FAIL: test %d - X509_cmp_time failed - returned %d compared to %lld\n",
test_no, i, att->time);
goto done;
}
ASN1_UTCTIME_free(ut);
if ((ut = ASN1_UTCTIME_set(NULL, att->time)) == NULL) {
- fprintf(stderr, "FAIL: test %i - failed to set time %lli\n",
+ fprintf(stderr, "FAIL: test %d - failed to set time %lld\n",
test_no, (long long)att->time);
goto done;
}
-/* $OpenBSD: base64test.c,v 1.9 2021/03/21 14:06:29 tb Exp $ */
+/* $OpenBSD: base64test.c,v 1.10 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
len = BIO_write(bio_mem, bt->in, bt->in_len);
if (len != bt->in_len) {
- fprintf(stderr, "FAIL: test %i - only wrote %zi out of %zi "
+ fprintf(stderr, "FAIL: test %d - only wrote %zd out of %zd "
"characters\n", test_no, len, bt->in_len);
failure = 1;
goto done;
}
if (BIO_flush(bio_mem) < 0) {
- fprintf(stderr, "FAIL: test %i - flush failed\n", test_no);
+ fprintf(stderr, "FAIL: test %d - flush failed\n", test_no);
failure = 1;
goto done;
}
goto done;
if (len != b64len) {
- fprintf(stderr, "FAIL: test %i - encoding resulted in %zi "
- "characters instead of %zi\n", test_no, len, b64len);
+ fprintf(stderr, "FAIL: test %d - encoding resulted in %zd "
+ "characters instead of %zd\n", test_no, len, b64len);
failure = 1;
goto done;
}
if (memcmp(buf, out, b64len) != 0) {
- fprintf(stderr, "FAIL: test %i - encoding differs:\n", test_no);
+ fprintf(stderr, "FAIL: test %d - encoding differs:\n", test_no);
fprintf(stderr, " encoding: ");
for (i = 0; i < len; i++)
fprintf(stderr, "%c", out[i]);
*/
len = BIO_read(bio_mem, buf, BUF_SIZE);
if (len != bt->valid_len && (bt->in_len != 0 || len != -1)) {
- fprintf(stderr, "FAIL: test %i - decoding resulted in %zi "
- "characters instead of %zi\n", test_no, len, bt->valid_len);
+ fprintf(stderr, "FAIL: test %d - decoding resulted in %zd "
+ "characters instead of %zd\n", test_no, len, bt->valid_len);
fprintf(stderr, " input: ");
for (i = 0; i < inlen; i++)
fprintf(stderr, "%c", input[i]);
goto done;
if (memcmp(bt->in, buf, bt->in_len) != 0) {
- fprintf(stderr, "FAIL: test %i - decoding differs:\n", test_no);
+ fprintf(stderr, "FAIL: test %d - decoding differs:\n", test_no);
fprintf(stderr, " decoding: ");
for (i = 0; i < len; i++)
fprintf(stderr, "0x%x ", buf[i]);
-/* $OpenBSD: biotest.c,v 1.8 2022/02/19 16:00:57 jsing Exp $ */
+/* $OpenBSD: biotest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2014, 2022 Joel Sing <jsing@openbsd.org>
*
ret = BIO_get_host_ip(bgit->input, ip.c);
if (ret != bgit->ret) {
- fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n",
+ fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n",
i, bgit->input, ret ? "success" : "failure",
bgit->ret ? "success" : "failure");
failed = 1;
continue;
}
if (ret && ntohl(ip.i) != bgit->ip) {
- fprintf(stderr, "FAIL: test %zi (\"%s\") returned ip "
+ fprintf(stderr, "FAIL: test %zd (\"%s\") returned ip "
"%x != %x\n", i, bgit->input,
ntohl(ip.i), bgit->ip);
failed = 1;
ret = BIO_get_port(bgpt->input, &port);
if (ret != bgpt->ret) {
- fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n",
+ fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n",
i, bgpt->input, ret ? "success" : "failure",
bgpt->ret ? "success" : "failure");
failed = 1;
continue;
}
if (ret && port != bgpt->port) {
- fprintf(stderr, "FAIL: test %zi (\"%s\") returned port "
+ fprintf(stderr, "FAIL: test %zd (\"%s\") returned port "
"%u != %u\n", i, bgpt->input, port, bgpt->port);
failed = 1;
}
-/* $OpenBSD: bntest.c,v 1.24 2021/12/29 23:00:32 tb Exp $ */
+/* $OpenBSD: bntest.c,v 1.25 2022/09/05 21:06:31 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
}
}
if (s == 0) {
- fprintf(stderr, "All %i tests of GF(2^m) modular solve quadratic resulted in no roots;\n", num0);
+ fprintf(stderr, "All %d tests of GF(2^m) modular solve quadratic resulted in no roots;\n", num0);
fprintf(stderr, "this is very unlikely and probably indicates an error.\n");
goto err;
}
-/* $OpenBSD: enginetest.c,v 1.8 2018/07/17 17:06:49 tb Exp $ */
+/* $OpenBSD: enginetest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
loop = 0;
printf("listing available engine types\n");
while (h) {
- printf("engine %i, id = \"%s\", name = \"%s\"\n",
+ printf("engine %d, id = \"%s\", name = \"%s\"\n",
loop++, ENGINE_get_id(h), ENGINE_get_name(h));
h = ENGINE_get_next(h);
}
printf("About to beef up the engine-type list\n");
for (loop = 0; loop < 512; loop++) {
- if (asprintf(&id, "id%i", loop) == -1)
+ if (asprintf(&id, "id%d", loop) == -1)
goto end;
- if (asprintf(&name, "Fake engine type %i", loop) == -1)
+ if (asprintf(&name, "Fake engine type %d", loop) == -1)
goto end;
if (((block[loop] = ENGINE_new()) == NULL) ||
for (loop = 0; loop < 512; loop++) {
if (!ENGINE_add(block[loop])) {
- printf("\nAdding stopped at %i, (%s,%s)\n",
+ printf("\nAdding stopped at %d, (%s,%s)\n",
loop, ENGINE_get_id(block[loop]),
ENGINE_get_name(block[loop]));
break;
-/* $OpenBSD: gcm128test.c,v 1.6 2018/07/17 17:06:49 tb Exp $ */
+/* $OpenBSD: gcm128test.c,v 1.7 2022/09/05 21:06:31 tb Exp $ */
/* ====================================================================
* Copyright (c) 2010 The OpenSSL Project. All rights reserved.
*
if (tv->P_len > 0)
CRYPTO_gcm128_encrypt(&ctx, tv->P, out, out_len);
if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) {
- fprintf(stderr, "TEST %i: CRYPTO_gcm128_finish failed\n",
+ fprintf(stderr, "TEST %d: CRYPTO_gcm128_finish failed\n",
test_no);
goto fail;
}
if (tv->C_len > 0 && memcmp(out, tv->C, out_len)) {
- fprintf(stderr, "TEST %i: encrypt failed\n", test_no);
+ fprintf(stderr, "TEST %d: encrypt failed\n", test_no);
goto fail;
}
if (tv->C_len > 0)
CRYPTO_gcm128_decrypt(&ctx, tv->C, out, out_len);
if (CRYPTO_gcm128_finish(&ctx, tv->T, 16)) {
- fprintf(stderr, "TEST %i: CRYPTO_gcm128_finish failed\n",
+ fprintf(stderr, "TEST %d: CRYPTO_gcm128_finish failed\n",
test_no);
goto fail;
}
if (tv->P_len > 0 && memcmp(out, tv->P, out_len)) {
- fprintf(stderr, "TEST %i: decrypt failed\n", test_no);
+ fprintf(stderr, "TEST %d: decrypt failed\n", test_no);
goto fail;
}
-/* $OpenBSD: objectstest.c,v 1.5 2022/02/20 13:47:53 jsing Exp $ */
+/* $OpenBSD: objectstest.c,v 1.6 2022/09/05 21:06:31 tb Exp $ */
/*
* Copyright (c) 2017, 2022 Joel Sing <jsing@openbsd.org>
*
{
if (len1 != len2) {
fprintf(stderr, "FAIL: %s - byte lengths differ "
- "(%i != %i)\n", label, len1, len2);
+ "(%d != %d)\n", label, len1, len2);
fprintf(stderr, "Got:\n");
hexdump(d1, len1);
fprintf(stderr, "Want:\n");