summaryrefslogtreecommitdiff
path: root/OpenSSL/SSL.py
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2014-03-12 15:02:56 -0700
committerAndy Lutomirski <luto@amacapital.net>2014-03-12 15:02:56 -0700
commit76a6133518e5671cc6380304fdc06aae66542d7c (patch)
tree5b1fc51ce7a8ac85305486fe81492c69564097bd /OpenSSL/SSL.py
parent9bca0edb8a68b5fdb23287d0412ed8205bc1d91a (diff)
downloadpyopenssl-76a6133518e5671cc6380304fdc06aae66542d7c.tar.gz
Fix docstring and Python 2.6 issues in ECDHE support
Diffstat (limited to 'OpenSSL/SSL.py')
-rw-r--r--OpenSSL/SSL.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 9fe7001..602a98c 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -271,8 +271,8 @@ if _Cryptography_HAS_EC:
_num_curves = _lib.EC_get_builtin_curves(_ffi.NULL, 0)
_curves = _ffi.new('EC_builtin_curve[]', _num_curves)
if _lib.EC_get_builtin_curves(_curves, _num_curves) == _num_curves:
- ELLIPTIC_CURVE_DESCRIPTIONS = {c.nid : _ffi.string(c.comment)
- for c in _curves}
+ ELLIPTIC_CURVE_DESCRIPTIONS = dict((c.nid, _ffi.string(c.comment))
+ for c in _curves)
del _num_curves
del _curves
@@ -751,10 +751,10 @@ class Context(object):
def set_tmp_ecdh_by_curve_name(self, curve_name):
"""
- Configure this connection to people to use Elliptical Curve
- Diffie-Hellman key exchanges.
+ Select a curve to use for ECDHE key exchange.
:param curve_name: One of the named curve constants.
+ :type curve_name: int
:return: None
"""
if _lib.Cryptography_HAS_EC: