pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add API functions to libpq to interrogate SSL related stuff.
Date: Tue, 03 Feb 2015 17:58:30 +0000
Message-ID: <E1YIhk6-00032E-Jx@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add API functions to libpq to interrogate SSL related stuff.

This makes it possible to query for things like the SSL version and cipher
used, without depending on OpenSSL functions or macros. That is a good
thing if we ever get another SSL implementation.

PQgetssl() still works, but it should be considered as deprecated as it
only works with OpenSSL. In particular, PQgetSslInUse() should be used to
check if a connection uses SSL, because as soon as we have another
implementation, PQgetssl() will return NULL even if SSL is in use.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/91fa7b4719ac583420d9143132ba4ccddefbc5b2

Modified Files
--------------
doc/src/sgml/libpq.sgml                  |  155 +++++++++++++++++++++++++++---
src/bin/psql/command.c                   |   35 +++----
src/interfaces/libpq/exports.txt         |    4 +
src/interfaces/libpq/fe-secure-openssl.c |   68 +++++++++++++
src/interfaces/libpq/fe-secure.c         |   20 ++++
src/interfaces/libpq/libpq-fe.h          |    6 ++
6 files changed, 251 insertions(+), 37 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (3+ messages)  latest in thread

Message-ID: <E1YIhk6-00032E-Jx@gemulon.postgresql.org>
Permalink:  ../E1YIhk6-00032E-Jx@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YIhk6-00032E-Jx@gemulon.postgresql.org

 · 

reply

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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Add API functions to libpq to interrogate SSL related stuff.
  In-Reply-To: <E1YIhk6-00032E-Jx@gemulon.postgresql.org>
  References: <E1YIhk6-00032E-Jx@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