diff options
author | Jim Carroll <jim@caroll.com> | 2016-07-28 15:00:47 -0400 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-09-15 14:42:51 +0200 |
commit | 3c7c38492f80484c38e017a02175f0559b6eaabb (patch) | |
tree | d371b4257c80afebe643ec0cf1f0c4acb578b06e | |
parent | 7527cb115bc197895cd121220f4489fb44f4c9d9 (diff) | |
download | m2crypto-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.py | 1 |
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): |