mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Support configuring multiple ECDH curves
The ssl_ecdh_curve GUC only accepts a single value, but the TLS handshake can list multiple curves in the groups extension (the extension has been renamed to contain more than elliptic curves). This changes the GUC to accept a colon-separated list of curves. This commit also renames the GUC to ssl_groups to match the new nomenclature for the TLS extension. Original patch by Erica Zhang with additional hacking by me. Author: Erica Zhang <ericazhangy2021@qq.com> Author: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl> Discussion: https://postgr.es/m/tencent_063F89FA72CCF2E48A0DF5338841988E9809@qq.com
This commit is contained in:
@ -4656,9 +4656,9 @@ struct config_string ConfigureNamesString[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"ssl_ecdh_curve", PGC_SIGHUP, CONN_AUTH_SSL,
|
||||
gettext_noop("Sets the curve to use for ECDH."),
|
||||
NULL,
|
||||
{"ssl_groups", PGC_SIGHUP, CONN_AUTH_SSL,
|
||||
gettext_noop("Sets the group(s) to use for Diffie-Hellman key exchange."),
|
||||
gettext_noop("Multiple groups can be specified using colon-separated list."),
|
||||
GUC_SUPERUSER_ONLY
|
||||
},
|
||||
&SSLECDHCurve,
|
||||
|
Reference in New Issue
Block a user