Commit Graph

1 Commits

Author SHA1 Message Date
Filip Janus
95905e59ff Enable PQC-compatible TLS group negotiation for ssl_ecdh_curve
Backport SSL_CTX_set1_groups_list() from upstream PG18 (commit 3d1ef3a15c3)
to replace the legacy OBJ_sn2nid()/EC_KEY_new_by_curve_name() API in
initialize_ecdh(). This enables ssl_ecdh_curve to accept colon-separated
lists of TLS group names, including post-quantum hybrid groups such as
X25519MLKEM768.

Changes:
- Replace legacy ECDH API with SSL_CTX_set1_groups_list()
- Backport SSLerrmessageExt() helper for proper error messages
- Add errhint for invalid group name diagnostics
- Update GUC description to document colon-separated list support
- Update postgresql.conf.sample with explanatory comment

Resolves: RHEL-119229
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 11:00:34 +02:00