summaryrefslogtreecommitdiff
path: root/src/OpenSSL/crypto.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-09-24 01:52:21 -0400
committerHynek Schlawack <hs@ox.cx>2016-09-24 07:52:21 +0200
commit5af32d0d55f5d385e5592e00a2e574a43f0b74fb (patch)
tree9a2911b0da38417eaf374cf70726bf20646c74d2 /src/OpenSSL/crypto.py
parent9f9113a7bb736a835f978d27e95603c8d6f52b7c (diff)
downloadpyopenssl-5af32d0d55f5d385e5592e00a2e574a43f0b74fb.tar.gz
Test on OpenSSL 1.1.0 with travis. Fixes #524 (#526)
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r--src/OpenSSL/crypto.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index d811199..797dfdc 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -820,6 +820,8 @@ class X509Req(object):
def __init__(self):
req = _lib.X509_REQ_new()
self._req = _ffi.gc(req, _lib.X509_REQ_free)
+ # Default to version 0.
+ self.set_version(0)
def set_pubkey(self, pkey):
"""