pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add connection parameters to control SSL protocol min/max in lib
Date: Tue, 28 Jan 2020 01:55:43 +0000
Message-ID: <E1iwG6R-0000xN-KU@gemulon.postgresql.org> (raw)

Add connection parameters to control SSL protocol min/max in libpq

These two new parameters, named sslminprotocolversion and
sslmaxprotocolversion, allow to respectively control the minimum and the
maximum version of the SSL protocol used for the SSL connection attempt.
The default setting is to allow any version for both the minimum and the
maximum bounds, causing libpq to rely on the bounds set by the backend
when negotiating the protocol to use for an SSL connection.  The bounds
are checked when the values are set at the earliest stage possible as
this makes the checks independent of any SSL implementation.

Author: Daniel Gustafsson
Reviewed-by: Michael Paquier, Cary Huang
Discussion: https://postgr.es/m/4F246AE3-A7AE-471E-BD3D-C799D3748E03@yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ff8ca5fadd819155c82bd16fcc6b7231af649cf8

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out |   2 +-
doc/src/sgml/libpq.sgml                        |  54 ++++++++++++
src/backend/libpq/be-secure-openssl.c          |   3 +
src/interfaces/libpq/fe-connect.c              | 113 +++++++++++++++++++++++++
src/interfaces/libpq/fe-secure-openssl.c       |  89 +++++++++++++++++++
src/interfaces/libpq/libpq-int.h               |   2 +
src/test/ssl/t/001_ssltests.pl                 |  23 ++++-
7 files changed, 284 insertions(+), 2 deletions(-)



Message-ID: <E1iwG6R-0000xN-KU@gemulon.postgresql.org>
Permalink:  ../E1iwG6R-0000xN-KU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iwG6R-0000xN-KU@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: michael@paquier.xyz
  Subject: Re: pgsql: Add connection parameters to control SSL protocol min/max in lib
  In-Reply-To: <E1iwG6R-0000xN-KU@gemulon.postgresql.org>
  References: <E1iwG6R-0000xN-KU@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