pgsql: Use be_tls_* API for SSL information in sslinfo

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use be_tls_* API for SSL information in sslinfo
Date: 2020-11-03 09:06:06
Message-ID: E1kZsGU-0001uu-By@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)yesql(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2020-11-03 09:22:40 pgsql: Use the non-deprecated TG_TABLE_MAME in test trigger
Previous Message Peter Eisentraut 2020-11-03 08:21:11 pgsql: Remove use of deprecated containment operators in tests