Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-109945 update docs to clarify change is OpenSSL 3 and above
Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
  • Loading branch information
planetf1 committed Jul 17, 2024
commit 1af4b23566872df3e4cd7d501b308047892b0fd4
11 changes: 7 additions & 4 deletions Doc/library/ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1763,11 +1763,14 @@ to speed up repeated connections from the same clients.

.. method:: SSLContext.set_ecdh_curve(curve_name)

Set the curve names for Elliptic Curve-based Diffie-Hellman (ECDH) key
Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key
exchange. ECDH is significantly faster than regular DH while arguably
as secure. The *curve_name* parameter should be a colon separated string describing
one or more well-known elliptic curves, for example ``prime256v1`` for a widely
supported curve, or ``prime256v1:brainpoolP384r1`` to specify two curves that will be
as secure. The *curve_name* parameter should be a string describing
a well-known elliptic curve, for example ``prime256v1`` for a widely
supported curve.

For OpenSSL 3.0 and above *curve_name* parameter can be a colon separated
list of curves, for example ``prime256v1:brainpoolP384r1`` specifies two curves that will be
used on a client hello.

This setting doesn't apply to client sockets. You can also use the
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Adds support for multiple curves to be specified in SSLContext.set_ecdh_curve(curve_name) by setting curve_name to a colon separated list of curves. This allows multiple curves to be passed on a client hello.
Adds support for multiple curves to be specified in SSLContext.set_ecdh_curve(curve_name) for OpenSSL 3.0 and above by setting curve_name to a colon separated list of curves. This allows multiple curves to be passed on a client hello.