aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/asn1_time.vec
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-04-12 11:25:38 -0400
committerJack Lloyd <[email protected]>2018-04-12 11:25:38 -0400
commit25de1f6a94983134e70b1cdbc5ceb226039623ae (patch)
treea9091b371f44b6835c5f5beccd8608809cdf341e /src/tests/data/asn1_time.vec
parent6a9557cc5528ec01737e77b67959cba8778f1265 (diff)
Allow year up to 2200 in ASN1 time objects
Also tighten up checking of days Fixes GH #1536
Diffstat (limited to 'src/tests/data/asn1_time.vec')
-rw-r--r--src/tests/data/asn1_time.vec37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/tests/data/asn1_time.vec b/src/tests/data/asn1_time.vec
new file mode 100644
index 000000000..b1b33f279
--- /dev/null
+++ b/src/tests/data/asn1_time.vec
@@ -0,0 +1,37 @@
+
+[UTC]
+
+Tspec = 500131053030Z
+
+[UTC.invalid]
+
+Tspec = 201801310590Z
+
+[Generalized]
+
+Tspec = 19500101000000Z
+Tspec = 19500131053030Z
+Tspec = 20000229000000Z
+Tspec = 20180131000000Z
+Tspec = 20180131053030Z
+Tspec = 20200229000000Z
+Tspec = 20201231235960Z
+Tspec = 21000101000060Z
+Tspec = 21000101005900Z
+Tspec = 21000101230000Z
+Tspec = 22001231235960Z
+
+[Generalized.invalid]
+
+Tspec = 20000001000000Z
+Tspec = 20000100000000Z
+
+Tspec = 19490131053030Z
+Tspec = 20180132000000Z
+Tspec = 20180229000000Z
+Tspec = 21000101000061Z
+Tspec = 21000101006000Z
+Tspec = 21000101240000Z
+Tspec = 21000101990000Z
+Tspec = 21000229000000Z
+Tspec = 22010131053030Z