From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use be_tls_* API for SSL information in sslinfo
Date: Tue, 03 Nov 2020 09:06:06 +0000
Message-ID: <E1kZsGU-0001uu-By@gemulon.postgresql.org> (raw)
Use be_tls_* API for SSL information in sslinfo
sslinfo was passing the Port->ssl member directly to OpenSSL in order
to extract information regarding the connection. This breaks the API
provided by the backend TLS implementation, as well as duplicates code
for no benefit. Rewrite to make use of the backend API as much as
possible.
Author: Daniel Gustafsson <daniel@yesql.se>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5d1833f414973595411779b86e085fb05907a805
Modified Files
--------------
contrib/sslinfo/sslinfo.c | 139 ++++++++++++++++------------------------------
doc/src/sgml/sslinfo.sgml | 4 +-
2 files changed, 49 insertions(+), 94 deletions(-)
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: magnus@hagander.net
Subject: Re: pgsql: Use be_tls_* API for SSL information in sslinfo
In-Reply-To: <E1kZsGU-0001uu-By@gemulon.postgresql.org>
References: <E1kZsGU-0001uu-By@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