diff options
| author | tb <> | 2023-04-14 14:14:39 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-14 14:14:39 +0000 |
| commit | 25f2b7e622926973f1d3573be2ea0d2d04256e4b (patch) | |
| tree | b414fd0b4fcb23e675db98e715bc0a6660f9465f | |
| parent | c556567750bcea59402276e8f89a5f39b5e97103 (diff) | |
| download | openbsd-25f2b7e622926973f1d3573be2ea0d2d04256e4b.tar.gz openbsd-25f2b7e622926973f1d3573be2ea0d2d04256e4b.tar.bz2 openbsd-25f2b7e622926973f1d3573be2ea0d2d04256e4b.zip | |
Cast the uint64_t SCT timestamps to (unsigned long long) for printing.
What a wonderful choice between this and that PRI ugliness...
| -rw-r--r-- | src/regress/lib/libcrypto/ct/cttest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/ct/cttest.c b/src/regress/lib/libcrypto/ct/cttest.c index a0c75560ef..dd7b814109 100644 --- a/src/regress/lib/libcrypto/ct/cttest.c +++ b/src/regress/lib/libcrypto/ct/cttest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cttest.c,v 1.6 2023/04/14 12:37:20 tb Exp $ */ | 1 | /* $OpenBSD: cttest.c,v 1.7 2023/04/14 14:14:39 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -225,8 +225,9 @@ ct_compare_test_scts(STACK_OF(SCT) *scts) | |||
| 225 | } | 225 | } |
| 226 | if (SCT_get_timestamp(sct) != sdt->timestamp) { | 226 | if (SCT_get_timestamp(sct) != sdt->timestamp) { |
| 227 | fprintf(stderr, "FAIL: SCT %d - got timestamp %llu, " | 227 | fprintf(stderr, "FAIL: SCT %d - got timestamp %llu, " |
| 228 | "want %llu\n", i, SCT_get_timestamp(sct), | 228 | "want %llu\n", i, |
| 229 | sdt->timestamp); | 229 | (unsigned long long)SCT_get_timestamp(sct), |
| 230 | (unsigned long long)sdt->timestamp); | ||
| 230 | goto failure; | 231 | goto failure; |
| 231 | } | 232 | } |
| 232 | if (SCT_get_signature_nid(sct) != sdt->signature_nid) { | 233 | if (SCT_get_signature_nid(sct) != sdt->signature_nid) { |
