Обсуждение: pgsql: Use be_tls_* API for SSL information in sslinfo

Поиск
Список
Период
Сортировка

pgsql: Use be_tls_* API for SSL information in sslinfo

От
Magnus Hagander
Дата:
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(-)