summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Carroll <jim@caroll.com>2016-07-28 15:00:47 -0400
committerMatěj Cepl <mcepl@cepl.eu>2017-09-15 14:42:51 +0200
commit3c7c38492f80484c38e017a02175f0559b6eaabb (patch)
treed371b4257c80afebe643ec0cf1f0c4acb578b06e
parent7527cb115bc197895cd121220f4489fb44f4c9d9 (diff)
downloadm2crypto-3c7c38492f80484c38e017a02175f0559b6eaabb.tar.gz
Manually set the version for new requests to zero.
In order to match M2Crypto assumption. OpenSSL 1.1.0 makes no such assurance which causes tests/test_x509 to fail.
-rw-r--r--M2Crypto/X509.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/M2Crypto/X509.py b/M2Crypto/X509.py
index e812224..74a2819 100644
--- a/M2Crypto/X509.py
+++ b/M2Crypto/X509.py
@@ -1103,6 +1103,7 @@ class Request:
self._pyfree = _pyfree
else:
self.req = m2.x509_req_new()
+ m2.x509_req_set_version(self.req, 0)
self._pyfree = 1
def __del__(self):