diff options
author | Adrián Chaves <adrian@chaves.io> | 2020-03-31 16:14:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 09:14:50 -0500 |
commit | 98c57be751fe18fec6d05152965f53ed9ade0872 (patch) | |
tree | 90bee22e743f418b0af7dc324daebfb0aed715aa /src/OpenSSL/crypto.py | |
parent | d65d76490dd3e7384be7ee7eb03e858548aa7591 (diff) | |
download | pyopenssl-98c57be751fe18fec6d05152965f53ed9ade0872.tar.gz |
Remove asserts (#904)
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r-- | src/OpenSSL/crypto.py | 4 |
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) |