summaryrefslogtreecommitdiff
path: root/src/OpenSSL/crypto.py
diff options
context:
space:
mode:
authorAdrián Chaves <adrian@chaves.io>2020-03-31 16:14:50 +0200
committerGitHub <noreply@github.com>2020-03-31 09:14:50 -0500
commit98c57be751fe18fec6d05152965f53ed9ade0872 (patch)
tree90bee22e743f418b0af7dc324daebfb0aed715aa /src/OpenSSL/crypto.py
parentd65d76490dd3e7384be7ee7eb03e858548aa7591 (diff)
downloadpyopenssl-98c57be751fe18fec6d05152965f53ed9ade0872.tar.gz
Remove asserts (#904)
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r--src/OpenSSL/crypto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index e2956ae..30dd478 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -1819,7 +1819,7 @@ def dump_certificate(type, cert):
"type argument must be FILETYPE_PEM, FILETYPE_ASN1, or "
"FILETYPE_TEXT")
- assert result_code == 1
+ _openssl_assert(result_code == 1)
return _bio_to_string(bio)
@@ -2893,7 +2893,7 @@ def dump_crl(type, crl):
"type argument must be FILETYPE_PEM, FILETYPE_ASN1, or "
"FILETYPE_TEXT")
- assert ret == 1
+ _openssl_assert(ret == 1)
return _bio_to_string(bio)