aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-26 17:29:45 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-26 17:29:45 -0500
commitafca2d508702e7e749db49aeee83940d547015a7 (patch)
tree88dc479b2d055dc81f9f4159aae2d0778abedfee
parent768a2815081239ae63d479cf4ea42eac16ff7fbe (diff)
downloadcryptography-afca2d508702e7e749db49aeee83940d547015a7.tar.gz
cryptography-afca2d508702e7e749db49aeee83940d547015a7.tar.bz2
cryptography-afca2d508702e7e749db49aeee83940d547015a7.zip
use NID_undef instead of literal value
-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 d9d8458e..c28d2335 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -519,7 +519,7 @@ class Backend(object):
assert group != self._ffi.NULL
nid = self._lib.EC_GROUP_get_curve_name(group)
- assert nid != 0
+ assert nid != self._lib.NID_undef
curve_name = self._lib.OBJ_nid2sn(nid)
assert curve_name != self._ffi.NULL