Refactor libpq state machine for negotiating encryption
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +251 −176 |
| src/interfaces/libpq/libpq-int.h | modified | +10 −4 |
| src/test/libpq_encryption/t/001_negotiate_encryption.pl | modified | +4 −22 |