Thread: pgsql: Add tests for errors during SSL or GSSAPI handshake

pgsql: Add tests for errors during SSL or GSSAPI handshake

From
Heikki Linnakangas
Date:
Add tests for errors during SSL or GSSAPI handshake

These test that libpq correctly falls back to a plaintext connection
on handshake error, in the "prefer" modes.

Reviewed-by: Michael Paquier
Discussion:
https://www.postgresql.org/message-id/CAOYmi%2Bnwvu21mJ4DYKUa98HdfM_KZJi7B1MhyXtnsyOO-PB6Ww%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ef7fa900fb587cbaac9f3e943f789155b97aa02b

Modified Files
--------------
src/backend/libpq/be-secure-gssapi.c               |  3 +++
src/backend/libpq/be-secure.c                      |  3 +++
src/interfaces/libpq/t/005_negotiate_encryption.pl | 20 ++++++++++++++++++++
3 files changed, 26 insertions(+)