]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use be_tls_* API for SSL information in sslinfo
authorMagnus Hagander <magnus@hagander.net>
Tue, 3 Nov 2020 08:47:36 +0000 (09:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 3 Nov 2020 08:47:36 +0000 (09:47 +0100)
commit5d1833f414973595411779b86e085fb05907a805
treed0d93c25d32419780e3e1fb672892d5d7b88982f
parent3165426e54df02a6199c0a216546e5095e875a0a
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>
contrib/sslinfo/sslinfo.c
doc/src/sgml/sslinfo.sgml