pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add libpq connection parameter "scram_channel_binding"
Date: Tue, 19 Dec 2017 15:16:29 +0000
Message-ID: <E1eRJd7-0004rA-3o@gemulon.postgresql.org> (raw)

Add libpq connection parameter "scram_channel_binding"

This parameter can be used to enforce the channel binding type used
during a SCRAM authentication.  This can be useful to check code paths
where an invalid channel binding type is used by a client and will be
even more useful to allow testing other channel binding types when they
are added.

The default value is tls-unique, which is what RFC 5802 specifies.
Clients can optionally specify an empty value, which has as effect to
not use channel binding and use SCRAM-SHA-256 as chosen SASL mechanism.

More tests for SCRAM and channel binding are added to the SSL test
suite.

Author: Author: Michael Paquier <michael.paquier@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4bbf110d2fb4f74b9385bd5a521f824dfa5f15ec

Modified Files
--------------
doc/src/sgml/libpq.sgml              | 24 ++++++++++++++++++++++++
src/interfaces/libpq/fe-auth-scram.c | 20 +++++++++++++++-----
src/interfaces/libpq/fe-auth.c       |  9 ++++++---
src/interfaces/libpq/fe-auth.h       |  1 +
src/interfaces/libpq/fe-connect.c    |  9 +++++++++
src/interfaces/libpq/libpq-int.h     |  1 +
src/test/ssl/t/002_scram.pl          | 14 +++++++++++++-
7 files changed, 69 insertions(+), 9 deletions(-)



Message-ID: <E1eRJd7-0004rA-3o@gemulon.postgresql.org>
Permalink:  ../E1eRJd7-0004rA-3o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eRJd7-0004rA-3o@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: peter_e@gmx.net
  Subject: Re: pgsql: Add libpq connection parameter "scram_channel_binding"
  In-Reply-To: <E1eRJd7-0004rA-3o@gemulon.postgresql.org>
  References: <E1eRJd7-0004rA-3o@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