pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move SSL information callback earlier to capture more informatio
Date: Fri, 22 Jan 2021 00:29:27 +0000
Message-ID: <E1l2kKN-0006Io-BX@gemulon.postgresql.org> (raw)

Move SSL information callback earlier to capture more information

The callback for retrieving state change information during connection
setup was only installed when the connection was mostly set up, and
thus didn't provide much information and missed all the details related
to the handshake.

This also extends the callback with SSL_state_string_long() to print
more information about the state change within the SSL object handled.

While there, fix some comments which were incorrectly referring to the
callback and its previous location in fe-secure.c.

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/232CF476-94E1-42F1-9408-719E2AEC5491@yesql.se

Branch
------
master

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

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    | 26 +++++++++++++++-----------
src/interfaces/libpq/fe-secure-openssl.c |  2 +-
src/interfaces/libpq/fe-secure.c         |  6 ------
3 files changed, 16 insertions(+), 18 deletions(-)



Message-ID: <E1l2kKN-0006Io-BX@gemulon.postgresql.org>
Permalink:  ../E1l2kKN-0006Io-BX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l2kKN-0006Io-BX@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Move SSL information callback earlier to capture more informatio
  In-Reply-To: <E1l2kKN-0006Io-BX@gemulon.postgresql.org>
  References: <E1l2kKN-0006Io-BX@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