diff options
author | tb <> | 2022-06-10 22:00:15 +0000 |
---|---|---|
committer | tb <> | 2022-06-10 22:00:15 +0000 |
commit | ee4a41a6ea3f5b281b0e7cbd0c5cb4d945fc6026 (patch) | |
tree | 7a944539218f0b64a71eb5ad4086e87c03970745 /src/regress/lib/libssl/unit | |
parent | d65646bbcacf3f7648d032597bbf00f0ef8cf1c3 (diff) | |
download | openbsd-ee4a41a6ea3f5b281b0e7cbd0c5cb4d945fc6026.tar.gz openbsd-ee4a41a6ea3f5b281b0e7cbd0c5cb4d945fc6026.tar.bz2 openbsd-ee4a41a6ea3f5b281b0e7cbd0c5cb4d945fc6026.zip |
More %i vs %d cleanup
Diffstat (limited to 'src/regress/lib/libssl/unit')
-rw-r--r-- | src/regress/lib/libssl/unit/tls_prf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libssl/unit/tls_prf.c b/src/regress/lib/libssl/unit/tls_prf.c index fe6f5c835d..bf0de1f044 100644 --- a/src/regress/lib/libssl/unit/tls_prf.c +++ b/src/regress/lib/libssl/unit/tls_prf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_prf.c,v 1.6 2022/02/06 09:19:46 anton Exp $ */ | 1 | /* $OpenBSD: tls_prf.c,v 1.7 2022/06/10 22:00:15 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -182,7 +182,7 @@ do_tls_prf_test(int test_no, struct tls_prf_test *tpt) | |||
182 | int failure = 1; | 182 | int failure = 1; |
183 | int len; | 183 | int len; |
184 | 184 | ||
185 | fprintf(stderr, "Test %i - %s\n", test_no, tpt->desc); | 185 | fprintf(stderr, "Test %d - %s\n", test_no, tpt->desc); |
186 | 186 | ||
187 | if ((out = malloc(TLS_PRF_OUT_LEN)) == NULL) | 187 | if ((out = malloc(TLS_PRF_OUT_LEN)) == NULL) |
188 | errx(1, "failed to allocate out"); | 188 | errx(1, "failed to allocate out"); |
@@ -207,14 +207,14 @@ do_tls_prf_test(int test_no, struct tls_prf_test *tpt) | |||
207 | sizeof(TLS_PRF_SEED2), TLS_PRF_SEED3, sizeof(TLS_PRF_SEED3), | 207 | sizeof(TLS_PRF_SEED2), TLS_PRF_SEED3, sizeof(TLS_PRF_SEED3), |
208 | TLS_PRF_SEED4, sizeof(TLS_PRF_SEED4), TLS_PRF_SEED5, | 208 | TLS_PRF_SEED4, sizeof(TLS_PRF_SEED4), TLS_PRF_SEED5, |
209 | sizeof(TLS_PRF_SEED5), out, len) != 1) { | 209 | sizeof(TLS_PRF_SEED5), out, len) != 1) { |
210 | fprintf(stderr, "FAIL: tls_PRF failed for len %i\n", | 210 | fprintf(stderr, "FAIL: tls_PRF failed for len %d\n", |
211 | len); | 211 | len); |
212 | goto failure; | 212 | goto failure; |
213 | } | 213 | } |
214 | 214 | ||
215 | if (memcmp(out, tpt->out, len) != 0) { | 215 | if (memcmp(out, tpt->out, len) != 0) { |
216 | fprintf(stderr, "FAIL: tls_PRF output differs for " | 216 | fprintf(stderr, "FAIL: tls_PRF output differs for " |
217 | "len %i\n", len); | 217 | "len %d\n", len); |
218 | fprintf(stderr, "output:\n"); | 218 | fprintf(stderr, "output:\n"); |
219 | hexdump(out, TLS_PRF_OUT_LEN); | 219 | hexdump(out, TLS_PRF_OUT_LEN); |
220 | fprintf(stderr, "test data:\n"); | 220 | fprintf(stderr, "test data:\n"); |