diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 15:39:36 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 15:39:36 -0800 |
commit | 993d1c79f4997fada41b89034d3249e8a5c7dfbd (patch) | |
tree | 8563d1cd7df1daf419d161f0024b3d401465b253 /cryptography | |
parent | 09cd8e6cd8103870543d1cc72fe9d404e2bd062c (diff) | |
parent | 8516bae9bf4b55c68825f350f217db020f73fcfd (diff) | |
download | cryptography-993d1c79f4997fada41b89034d3249e8a5c7dfbd.tar.gz cryptography-993d1c79f4997fada41b89034d3249e8a5c7dfbd.tar.bz2 cryptography-993d1c79f4997fada41b89034d3249e8a5c7dfbd.zip |
Merge pull request #708 from public/invalid-sig-errors
Consume errors on InvalidSignature
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 1fcd7ef2..f05ee3d6 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -784,6 +784,7 @@ class _RSAVerificationContext(object): # occurs. assert res >= 0 if res == 0: + assert self._backend._consume_errors() raise InvalidSignature def _verify_pkcs1(self, rsa_cdata, evp_pkey, evp_md): @@ -800,6 +801,7 @@ class _RSAVerificationContext(object): # occurs. assert res >= 0 if res == 0: + assert self._backend._consume_errors() raise InvalidSignature |