aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index bdbbffd6..251dd09b 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -796,7 +796,8 @@ class _RSAVerificationContext(object):
# occurs.
assert res >= 0
if res == 0:
- assert self._backend._consume_errors()
+ errors = self._backend._consume_errors()
+ assert errors
raise InvalidSignature
def _verify_pkcs1(self, rsa_cdata, evp_pkey, evp_md):
@@ -813,7 +814,8 @@ class _RSAVerificationContext(object):
# occurs.
assert res >= 0
if res == 0:
- assert self._backend._consume_errors()
+ errors = self._backend._consume_errors()
+ assert errors
raise InvalidSignature