[MASSMAIL]pgsql: Fix libpq_encryption tests when compiled without SSL support

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема [MASSMAIL]pgsql: Fix libpq_encryption tests when compiled without SSL support
Дата
Msg-id E1rvKCQ-001lVR-6D@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix libpq_encryption tests when compiled without SSL support

It correctly skipped tests involving SSL in the server when SSL
support was not compiled in, but even when SSL is not enabled in the
server and the connection is established without SSL, libpq behaves
differently in many of the test scenarios when libpq is compiled
without SSL support. For example, with sslmode=prefer, if libpq is
compiled with SSL support it will attempt to use SSL, but without SSL
support it will try authenticating in plaintext mode directly. The
expected test output didn't take that into account.

Discussion:
https://www.postgresql.org/message-id/CA%2BhUKG%2BHRTtB%2Bx%2BKKKj_cfX6sNhbeGuqmGxjGMwdVPG7YGFP8w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0a5f2291891ffca96ccd3ef29c9c1541a9277970

Modified Files
--------------
.../libpq_encryption/t/001_negotiate_encryption.pl | 104 ++++++++++++++-------
1 file changed, 71 insertions(+), 33 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: [MASSMAIL] pgsql: Fix some memory leaks associated with parsing json and manifests
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pgsql: Refactor libpq state machine for negotiating encryption