diff options
author | Alex Stapleton <alex@ly.st> | 2014-11-24 17:57:04 +0000 |
---|---|---|
committer | Alex Stapleton <alex@ly.st> | 2014-11-24 17:57:04 +0000 |
commit | 3050ec8408082712804d9694cf6e0472d2bd4318 (patch) | |
tree | aa30b847572ac5adee6bd2f357ec94952b9e605b | |
parent | e987b81aefb7a6545ff23dee8468d0a234cd13f8 (diff) | |
download | cryptography-3050ec8408082712804d9694cf6e0472d2bd4318.tar.gz cryptography-3050ec8408082712804d9694cf6e0472d2bd4318.tar.bz2 cryptography-3050ec8408082712804d9694cf6e0472d2bd4318.zip |
Don't check DSA error stack
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/dsa.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/dsa.py b/src/cryptography/hazmat/backends/openssl/dsa.py index 4a47947f..9488e260 100644 --- a/src/cryptography/hazmat/backends/openssl/dsa.py +++ b/src/cryptography/hazmat/backends/openssl/dsa.py @@ -57,11 +57,7 @@ class _DSAVerificationContext(object): len(self._signature), self._public_key._dsa_cdata) if res != 1: - errors = self._backend._consume_errors() - assert errors - if res == -1: - assert errors[0].lib == self._backend._lib.ERR_LIB_ASN1 - + self._backend._consume_errors() raise InvalidSignature |