summaryrefslogtreecommitdiff
path: root/src/OpenSSL/crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r--src/OpenSSL/crypto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index 5385541..8dec9a6 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -1148,7 +1148,7 @@ class X509:
if not isinstance(version, int):
raise TypeError("version must be an integer")
- _lib.X509_set_version(self._x509, version)
+ _openssl_assert(_lib.X509_set_version(self._x509, version) == 1)
def get_version(self):
"""