aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-06-07 11:59:46 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-06-07 11:59:46 -0700
commitbb91007b25b4393a43c3f91c0356b607a2fa623a (patch)
tree7478b71d24d5e9119dcfd1fe259937459087704b
parent425e5b04bb18ce2e563d891f3502365e3b9c071a (diff)
downloadcryptography-bb91007b25b4393a43c3f91c0356b607a2fa623a.tar.gz
cryptography-bb91007b25b4393a43c3f91c0356b607a2fa623a.tar.bz2
cryptography-bb91007b25b4393a43c3f91c0356b607a2fa623a.zip
Simplified code
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 9cf92f9b..7746dafb 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -915,10 +915,7 @@ class Backend(object):
):
return False
- if not self.elliptic_curve_supported(curve):
- return False
- else:
- return True
+ return self.elliptic_curve_supported(curve)
def _supported_curves(self):
if self._lib.Cryptography_HAS_EC != 1: