aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-05-26 07:23:36 +0200
committerTheo Buehler <tb@openbsd.org>2024-05-26 07:44:05 +0200
commit1fec7bea51f6537276aef9d5d95d67b11d7be907 (patch)
tree4514d0898d5073e3ed92ec30ebf13b4e377a2d50 /patches
parent8f03828942b063f3d7693fdaf3eb11ae77714d50 (diff)
downloadportable-1fec7bea51f6537276aef9d5d95d67b11d7be907.tar.gz
portable-1fec7bea51f6537276aef9d5d95d67b11d7be907.tar.bz2
portable-1fec7bea51f6537276aef9d5d95d67b11d7be907.zip
Make RFC 5280 test xfail on 32-bit time_t systems
Diffstat (limited to 'patches')
-rw-r--r--patches/rfc5280.c.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/patches/rfc5280.c.patch b/patches/rfc5280.c.patch
deleted file mode 100644
index 9807f00..0000000
--- a/patches/rfc5280.c.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1--- tests/rfc5280time.c.orig Mon Nov 2 20:00:31 2015
2+++ tests/rfc5280time.c Mon Nov 2 20:03:12 2015
3@@ -91,6 +91,7 @@
4 .data = "20150923032700Z",
5 .time = 1442978820,
6 },
7+#if SIZEOF_TIME_T == 8
8 {
9 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */
10 .str = "00000101000000Z",
11@@ -103,6 +104,7 @@
12 .data = "20491231235959Z",
13 .time = 2524607999LL,
14 },
15+#endif
16 {
17 /* (times before 2050 must be UTCTIME) Per RFC 5280 4.1.2.5 */
18 .str = "19500101000000Z",
19@@ -112,6 +114,7 @@
20 };
21
22 struct rfc5280_time_test rfc5280_gentime_tests[] = {
23+#if SIZEOF_TIME_T == 8
24 {
25 /* Biggest RFC 5280 time */
26 .str = "99991231235959Z",
27@@ -129,6 +132,7 @@
28 .data = "20500101000000Z",
29 .time = 2524608000LL,
30 },
31+#endif
32 };
33 struct rfc5280_time_test rfc5280_utctime_tests[] = {
34 {
35@@ -141,11 +145,13 @@
36 .data = "540226230640Z",
37 .time = -500000000,
38 },
39+#if SIZEOF_TIME_T == 8
40 {
41 .str = "491231235959Z",
42 .data = "491231235959Z",
43 .time = 2524607999LL,
44 },
45+#endif
46 {
47 .str = "700101000000Z",
48 .data = "700101000000Z",