Add X25519 to the default set of curves

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: daa02c6bd9262adeb44f4a9ed9d94fa6259afd94
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2025-03-18T14:26:27Z
Releases: 18.0
Add X25519 to the default set of curves

Since many clients default to the X25519 curve in the TLS handshake,
the fact that the server by defualt doesn't support it cause an extra
roundtrip for each TLS connection.  By adding multiple curves, which
is supported since 3d1ef3a15c3eb68da, we can reduce the risk of extra
roundtrips.

Author: Daniel Gustafsson <daniel@yesql.se>
Co-authored-by: Jacob Champion <jacob.champion@enterprisedb.com>
Reported-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
Discussion: https://postgr.es/m/20240616234612.6cslu7nqexquvwj7@awork3.anarazel.de

Files

Documentation touched

Discussion