summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/asn1/asn1evp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libcrypto/asn1/asn1evp.c')
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1evp.c12
1 files changed, 6 insertions, 6 deletions
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 }