aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-05-11 23:04:22 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-11 23:04:22 -0400
commit6c9a13f438c3d01c905cbbae269efce0748ac692 (patch)
tree68af17a765dba9a34c884e16cca90b1da01ffb67 /src
parent0830f9233332c8160b90e1af1a9fa4e2058fa3e4 (diff)
downloadcryptography-6c9a13f438c3d01c905cbbae269efce0748ac692.tar.gz
cryptography-6c9a13f438c3d01c905cbbae269efce0748ac692.tar.bz2
cryptography-6c9a13f438c3d01c905cbbae269efce0748ac692.zip
fixed variable name to be correct (#4226)
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py
index bfcf6fba..9cf969cd 100644
--- a/src/cryptography/hazmat/backends/openssl/backend.py
+++ b/src/cryptography/hazmat/backends/openssl/backend.py
@@ -1296,9 +1296,9 @@ class Backend(object):
except UnsupportedAlgorithm:
curve_nid = self._lib.NID_undef
- ctx = self._lib.EC_GROUP_new_by_curve_name(curve_nid)
+ group = self._lib.EC_GROUP_new_by_curve_name(curve_nid)
- if ctx == self._ffi.NULL:
+ if group == self._ffi.NULL:
errors = self._consume_errors()
self.openssl_assert(
curve_nid == self._lib.NID_undef or
@@ -1310,7 +1310,7 @@ class Backend(object):
return False
else:
self.openssl_assert(curve_nid != self._lib.NID_undef)
- self._lib.EC_GROUP_free(ctx)
+ self._lib.EC_GROUP_free(group)
return True
def elliptic_curve_signature_algorithm_supported(