Skip to content

Commit

Permalink
Fix elliptic curve setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jun 4, 2018
1 parent 844d3d6 commit acc0d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sydent/http/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class FederationPolicyForHTTPS(object):
def creatorForNetloc(self, hostname, port):
context = SSL.Context(SSL.SSLv23_METHOD)
try:
_ecCurve = _OpenSSLECCurve(_defaultCurveName)
_ecCurve.addECKeyToContext(context)
_ecCurve = crypto.get_elliptic_curve(_defaultCurveName)
context.set_tmp_ecdh(_ecCurve)
except Exception:
logger.exception("Failed to enable elliptic curve for TLS")
context.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
Expand Down

0 comments on commit acc0d14

Please sign in to comment.