Add PQencryptPasswordConn function to libpq, use it in psql and createuser.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 8f8b9be51fd788bb11276df89606bc653163524e
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2017-05-03T08:19:07Z
Releases: 10.0
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%40mail.gmail.com

Files

Documentation touched

Discussion