pgsql: Use be_tls_* API for SSL information in sslinfo - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Use be_tls_* API for SSL information in sslinfo
Date
Msg-id E1kZsGU-0001uu-By@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove use of deprecated containment operators in tests
Next
From: Magnus Hagander
Date:
Subject: pgsql: Use the non-deprecated TG_TABLE_MAME in test trigger