summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2015-10-30 15:52:55 +0000
committermiod <>2015-10-30 15:52:55 +0000
commite08e24c8fb2e0ede0c5209a9cb1733c7838ad385 (patch)
treebe1c14a7dece5d44f681f59a9b9fa18662000180
parent857a26cd73249023ce1882995ef8e654cd48f0e9 (diff)
downloadopenbsd-e08e24c8fb2e0ede0c5209a9cb1733c7838ad385.tar.gz
openbsd-e08e24c8fb2e0ede0c5209a9cb1733c7838ad385.tar.bz2
openbsd-e08e24c8fb2e0ede0c5209a9cb1733c7838ad385.zip
Add explicit LL suffixes to the numerical constants which do not fit in 32 bits.
-rw-r--r--src/regress/lib/libcrypto/asn1/rfc5280time.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/regress/lib/libcrypto/asn1/rfc5280time.c b/src/regress/lib/libcrypto/asn1/rfc5280time.c
index eb018ed798..34e40439dc 100644
--- a/src/regress/lib/libcrypto/asn1/rfc5280time.c
+++ b/src/regress/lib/libcrypto/asn1/rfc5280time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rfc5280time.c,v 1.3 2015/10/22 14:01:19 jsing Exp $ */ 1/* $OpenBSD: rfc5280time.c,v 1.4 2015/10/30 15:52:55 miod Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org> 4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org>
@@ -95,19 +95,19 @@ struct rfc5280_time_test rfc5280_invtime_tests[] = {
95 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */ 95 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */
96 .str = "00000101000000Z", 96 .str = "00000101000000Z",
97 .data = "00000101000000Z", 97 .data = "00000101000000Z",
98 .time = -62167219200, 98 .time = -62167219200LL,
99 }, 99 },
100 { 100 {
101 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */ 101 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */
102 .str = "20491231235959Z", 102 .str = "20491231235959Z",
103 .data = "20491231235959Z", 103 .data = "20491231235959Z",
104 .time = 2524607999, 104 .time = 2524607999LL,
105 }, 105 },
106 { 106 {
107 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */ 107 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */
108 .str = "19500101000000Z", 108 .str = "19500101000000Z",
109 .data = "19500101000000Z", 109 .data = "19500101000000Z",
110 .time = -631152000, 110 .time = -631152000LL,
111 }, 111 },
112}; 112};
113 113
@@ -116,18 +116,18 @@ struct rfc5280_time_test rfc5280_gentime_tests[] = {
116 /* Biggest RFC 5280 time */ 116 /* Biggest RFC 5280 time */
117 .str = "99991231235959Z", 117 .str = "99991231235959Z",
118 .data = "99991231235959Z", 118 .data = "99991231235959Z",
119 .time = 253402300799, 119 .time = 253402300799LL,
120 }, 120 },
121 { 121 {
122 .str = "21600218104000Z", 122 .str = "21600218104000Z",
123 .data = "21600218104000Z", 123 .data = "21600218104000Z",
124 .time = 6000000000, 124 .time = 6000000000LL,
125 }, 125 },
126 { 126 {
127 /* Smallest RFC 5280 gen time */ 127 /* Smallest RFC 5280 gen time */
128 .str = "20500101000000Z", 128 .str = "20500101000000Z",
129 .data = "20500101000000Z", 129 .data = "20500101000000Z",
130 .time = 2524608000, 130 .time = 2524608000LL,
131 }, 131 },
132}; 132};
133struct rfc5280_time_test rfc5280_utctime_tests[] = { 133struct rfc5280_time_test rfc5280_utctime_tests[] = {
@@ -144,7 +144,7 @@ struct rfc5280_time_test rfc5280_utctime_tests[] = {
144 { 144 {
145 .str = "491231235959Z", 145 .str = "491231235959Z",
146 .data = "491231235959Z", 146 .data = "491231235959Z",
147 .time = 2524607999, 147 .time = 2524607999LL,
148 }, 148 },
149 { 149 {
150 .str = "700101000000Z", 150 .str = "700101000000Z",