pgsql: Refactor libpq state machine for negotiating encryption

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor libpq state machine for negotiating encryption
Date: 2024-04-08 01:25:40
Message-ID: E1rtdlT-001383-HT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor libpq state machine for negotiating encryption

This fixes the few corner cases noted in commit 705843d294, as shown
by the changes in the test.

Author: Heikki Linnakangas, Matthias van de Meent
Reviewed-by: Jacob Champion

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/05fd30c0e730bd5238f62d2fdfdcfaf28b16b225

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 427 ++++++++++++---------
src/interfaces/libpq/libpq-int.h | 14 +-
.../libpq_encryption/t/001_negotiate_encryption.pl | 26 +-
3 files changed, 265 insertions(+), 202 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-04-08 01:34:36 pgsql: Silence perlcritic warnings in new libpq tests
Previous Message Thomas Munro 2024-04-08 01:20:20 pgsql: Use streaming I/O in ANALYZE.