commit | bb91007b25b4393a43c3f91c0356b607a2fa623a | [log] [tgz] |
---|---|---|
author | Alex Gaynor <alex.gaynor@gmail.com> | Sat Jun 07 11:59:46 2014 -0700 |
committer | Alex Gaynor <alex.gaynor@gmail.com> | Sat Jun 07 11:59:46 2014 -0700 |
tree | 7478b71d24d5e9119dcfd1fe259937459087704b | |
parent | 425e5b04bb18ce2e563d891f3502365e3b9c071a [diff] |
Simplified code
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 9cf92f9..7746daf 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -915,10 +915,7 @@ ): 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: