aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-06-21 15:31:43 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-06-21 15:31:43 +0100
commit65feb471cadf00a2f505864f1d366b33107d6f02 (patch)
tree6d5f6ab796ec01f7daf9b85cece4d52a58f6a3d6
parentd1b74c473df142363f7b6c5e6fa3a2c4a10c8c40 (diff)
downloadcryptography-65feb471cadf00a2f505864f1d366b33107d6f02.tar.gz
cryptography-65feb471cadf00a2f505864f1d366b33107d6f02.tar.bz2
cryptography-65feb471cadf00a2f505864f1d366b33107d6f02.zip
Check the error code properly
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 30012e07..bd6cc20a 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -932,7 +932,7 @@ class Backend(object):
errors = self._consume_errors()
assert (
curve_nid == self._lib.NID_undef or
- errors[0] == (
+ errors[0][1:] == (
self._lib.ERR_LIB_EC,
self._lib.EC_F_EC_GROUP_NEW_BY_CURVE_NAME,
self._lib.EC_R_UNKNOWN_GROUP