pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix libpq_encryption tests when compiled without SSL support
Date: Fri, 12 Apr 2024 16:56:26 +0000
Message-ID: <E1rvKCQ-001lVR-6D@gemulon.postgresql.org> (raw)

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@ma...

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(-)



Message-ID: <E1rvKCQ-001lVR-6D@gemulon.postgresql.org>
Permalink:  ../E1rvKCQ-001lVR-6D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rvKCQ-001lVR-6D@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix libpq_encryption tests when compiled without SSL support
  In-Reply-To: <E1rvKCQ-001lVR-6D@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox