diff options
| author | tb <> | 2023-04-14 14:14:39 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-14 14:14:39 +0000 |
| commit | c7d4297b88c35120aaff10817818b0b51f0c3ca1 (patch) | |
| tree | b414fd0b4fcb23e675db98e715bc0a6660f9465f /src | |
| parent | d33693b65136871efbe71420a19485da9f61a3c4 (diff) | |
| download | openbsd-c7d4297b88c35120aaff10817818b0b51f0c3ca1.tar.gz openbsd-c7d4297b88c35120aaff10817818b0b51f0c3ca1.tar.bz2 openbsd-c7d4297b88c35120aaff10817818b0b51f0c3ca1.zip | |
Cast the uint64_t SCT timestamps to (unsigned long long) for printing.
What a wonderful choice between this and that PRI ugliness...
Diffstat (limited to 'src')
| -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) { |
