From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add PQencryptPasswordConn function to libpq, use it in psql and
Date: Wed, 03 May 2017 08:26:53 +0000
Message-ID: <E1d5pcb-0003Px-5X@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add PQencryptPasswordConn function to libpq, use it in psql and createuser.
The new function supports creating SCRAM verifiers, in addition to md5
hashes. The algorithm is chosen based on password_encryption, by default.
This fixes the issue reported by Jeff Janes, that there was previously
no way to create a SCRAM verifier with "\password".
Michael Paquier and me
Discussion: https://www.postgresql.org/message-id/CAMkU%3D1wfBgFPbfAMYZQE78p%3DVhZX7nN86aWkp0QcCp%3D%2BKxZ%3Dbg%...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8f8b9be51fd788bb11276df89606bc653163524e
Modified Files
--------------
doc/src/sgml/libpq.sgml | 67 ++++++++++++++++---
src/backend/libpq/auth-scram.c | 51 ++------------
src/backend/libpq/crypt.c | 2 +-
src/bin/psql/command.c | 4 +-
src/bin/scripts/createuser.c | 9 ++-
src/common/scram-common.c | 64 ++++++++++++++++++
src/include/common/scram-common.h | 3 +
src/include/libpq/scram.h | 4 +-
src/interfaces/libpq/exports.txt | 1 +
src/interfaces/libpq/fe-auth-scram.c | 35 ++++++++++
src/interfaces/libpq/fe-auth.c | 125 +++++++++++++++++++++++++++++++----
src/interfaces/libpq/fe-auth.h | 1 +
src/interfaces/libpq/libpq-fe.h | 1 +
13 files changed, 291 insertions(+), 76 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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 PQencryptPasswordConn function to libpq, use it in psql and
In-Reply-To: <E1d5pcb-0003Px-5X@gemulon.postgresql.org>
References: <E1d5pcb-0003Px-5X@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