Mirror the OpenSSL API as is our idiom.
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index a4b66ed..ec49c27 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -597,7 +597,7 @@
_lib.SSL_CTX_set_tmp_dh(self._context, dh)
- def set_tmp_ecdh_curve(self, curve):
+ def set_tmp_ecdh(self, curve):
"""
Select a curve to use for ECDHE key exchange.
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py
index 6231143..4c3b12a 100644
--- a/OpenSSL/test/test_ssl.py
+++ b/OpenSSL/test/test_ssl.py
@@ -1174,16 +1174,16 @@
# XXX What should I assert here? -exarkun
- def test_set_tmp_ecdh_curve(self):
+ def test_set_tmp_ecdh(self):
"""
- :py:obj:`Context.set_tmp_ecdh_curve` sets the elliptic curve for
+ :py:obj:`Context.set_tmp_ecdh` sets the elliptic curve for
Diffie-Hellman to the specified curve.
"""
context = Context(TLSv1_METHOD)
for curve in get_elliptic_curves():
# The only easily "assertable" thing is that it does not raise an
# exception.
- context.set_tmp_ecdh_curve(curve)
+ context.set_tmp_ecdh(curve)
def test_set_cipher_list_bytes(self):