From 67d5775fdee5439002d7629f29dcebb46f97704e Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 1 Jan 2023 17:00:08 +0000 Subject: [PATCH] Add explicit LL suffixes to large constants to appease some compilers on 32-bit systems. --- regress/lib/libcrypto/ct/cttest.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/regress/lib/libcrypto/ct/cttest.c b/regress/lib/libcrypto/ct/cttest.c index 803b976ef66..05ec88c0910 100644 --- a/regress/lib/libcrypto/ct/cttest.c +++ b/regress/lib/libcrypto/ct/cttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cttest.c,v 1.3 2022/01/06 04:42:00 jsing Exp $ */ +/* $OpenBSD: cttest.c,v 1.4 2023/01/01 17:00:08 miod Exp $ */ /* * Copyright (c) 2021 Joel Sing * @@ -119,7 +119,7 @@ const struct sct_data sct_test_data[] = { 0xbe, 0x57, 0x7d, 0x9c, 0x60, 0x0a, 0xf8, 0xf9, 0x4d, 0x5d, 0x26, 0x5c, 0x25, 0x5d, 0xc7, 0x84, }, - .timestamp = 1637344157551, + .timestamp = 1637344157551LL, .extensions_len = 0, .signature_nid = NID_ecdsa_with_SHA256, .signature = sct_signature1, @@ -133,7 +133,7 @@ const struct sct_data sct_test_data[] = { 0x15, 0x1c, 0x11, 0xd9, 0x02, 0xc1, 0x00, 0x29, 0x06, 0x8d, 0xb2, 0x08, 0x9a, 0x37, 0xd9, 0x13 }, - .timestamp = 1637344157755, + .timestamp = 1637344157755LL, .extensions_len = 0, .signature_nid = NID_ecdsa_with_SHA256, .signature = sct_signature2, @@ -358,14 +358,14 @@ ct_sct_base64_test(void) int failed = 1; if ((sct1 = SCT_new_from_base64(SCT_VERSION_V1, sct_log_id1_base64, - CT_LOG_ENTRY_TYPE_X509, 1637344157551, "", + CT_LOG_ENTRY_TYPE_X509, 1637344157551LL, "", sct_signature1_base64)) == NULL) { fprintf(stderr, "FAIL: SCT_new_from_base64() failed\n"); ERR_print_errors_fp(stderr); goto failure; } if ((sct2 = SCT_new_from_base64(SCT_VERSION_V1, sct_log_id2_base64, - CT_LOG_ENTRY_TYPE_X509, 1637344157755, "", + CT_LOG_ENTRY_TYPE_X509, 1637344157755LL, "", sct_signature2_base64)) == NULL) { fprintf(stderr, "FAIL: SCT_new_from_base64() failed\n"); ERR_print_errors_fp(stderr); @@ -416,7 +416,7 @@ ct_sct_verify_test(void) goto failure; CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(ct_policy, ctlog_store); - CT_POLICY_EVAL_CTX_set_time(ct_policy, 1641393117000); + CT_POLICY_EVAL_CTX_set_time(ct_policy, 1641393117000LL); if (!CT_POLICY_EVAL_CTX_set1_cert(ct_policy, cert)) goto failure; -- 2.20.1