summaryrefslogtreecommitdiff
path: root/tests/makecerts.py
diff options
context:
space:
mode:
authorAndrew Waters <andrew_waters@bmc.com>2016-09-08 11:38:48 +0100
committerMatěj Cepl <mcepl@cepl.eu>2016-10-14 11:12:19 +0200
commit8226c957ef17600d9bf68aee8c20d3a4932b7c3b (patch)
tree294df74dae4a786bbb12e6b3791bc333dbeed5a0 /tests/makecerts.py
parent80661f5903deec10b2da4e0c51e1cdbf0eb40180 (diff)
downloadm2crypto-8226c957ef17600d9bf68aee8c20d3a4932b7c3b.tar.gz
Replace ASN1_UTCTIME with ASN1_TIME which supports both UTCTime and
GeneralizedTime.
Diffstat (limited to 'tests/makecerts.py')
-rwxr-xr-xtests/makecerts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/makecerts.py b/tests/makecerts.py
index c4b8046..411fac2 100755
--- a/tests/makecerts.py
+++ b/tests/makecerts.py
@@ -22,9 +22,9 @@ from tests.test_ec_curves import tested_curve
t = time.time() + time.timezone
-before = ASN1.ASN1_UTCTIME()
+before = ASN1.ASN1_TIME()
before.set_time(t)
-after = ASN1.ASN1_UTCTIME()
+after = ASN1.ASN1_TIME()
after.set_time(t + 60 * 60 * 24 * 365 * 10) # 10 years
serial = 1