aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-06-07 20:40:34 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-06-07 20:40:34 +0100
commit2f7e2e4684c819f4ba536a8838ed20306e66759f (patch)
tree7478b71d24d5e9119dcfd1fe259937459087704b
parent425e5b04bb18ce2e563d891f3502365e3b9c071a (diff)
parentbb91007b25b4393a43c3f91c0356b607a2fa623a (diff)
downloadcryptography-2f7e2e4684c819f4ba536a8838ed20306e66759f.tar.gz
cryptography-2f7e2e4684c819f4ba536a8838ed20306e66759f.tar.bz2
cryptography-2f7e2e4684c819f4ba536a8838ed20306e66759f.zip
Merge pull request #1108 from alex/simplify-code
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: