diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-29 11:24:29 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-29 11:24:29 -0700 |
commit | c9ff1cb34ca799e0722208619495a27f63efb4ca (patch) | |
tree | 5e2a355554eaeb24c82e04d53a82014b0de7e2ad | |
parent | 473e6a19a98cf61b1265dd6586af4ad861f5702b (diff) | |
download | cryptography-c9ff1cb34ca799e0722208619495a27f63efb4ca.tar.gz cryptography-c9ff1cb34ca799e0722208619495a27f63efb4ca.tar.bz2 cryptography-c9ff1cb34ca799e0722208619495a27f63efb4ca.zip |
Fixed accidental use of the global backend name
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index cfd1078b..4991177a 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -912,7 +912,7 @@ class Backend(object): Generate a new private key on the named curve. """ - if backend.elliptic_curve_supported(curve): + if self.elliptic_curve_supported(curve): curve_nid = self._elliptic_curve_to_nid(curve) ctx = self._lib.EC_KEY_new_by_curve_name(curve_nid) |