Refactor libpq state machine for negotiating encryption
authorHeikki Linnakangas <[email protected]>
Mon, 8 Apr 2024 01:24:46 +0000 (04:24 +0300)
committerHeikki Linnakangas <[email protected]>
Mon, 8 Apr 2024 01:24:46 +0000 (04:24 +0300)
commit05fd30c0e730bd5238f62d2fdfdcfaf28b16b225
tree13e4a2308c6c14ea1199eac9a7cd355b889fc7c5
parent041b96802efa33d2bc9456f2ad946976b92b5ae1
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
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-int.h
src/test/libpq_encryption/t/001_negotiate_encryption.pl