pgsql: Fix PQencryptPasswordConn to work with older server versions.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix PQencryptPasswordConn to work with older server versions.
Date: 2017-05-04 09:29:17
Message-ID: E1d6D4X-0006Bv-NA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix PQencryptPasswordConn to work with older server versions.

password_encryption was a boolean before version 10, so cope with "on" and
"off".

Also, change the behavior with "plain", to treat it the same as "md5".
We're discussing removing the password_encryption='plain' option from the
server altogether, which will make this the only reasonable choice, but
even if we kept it, it seems best to never send the password in cleartext.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20bf7b2b0afcb53608ec37005ee7f831132925d2

Modified Files
--------------
doc/src/sgml/libpq.sgml | 4 +++-
src/interfaces/libpq/fe-auth.c | 21 ++++++++++++++-------
2 files changed, 17 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-05-04 17:59:48 pgsql: Fix pfree-of-already-freed-tuple when rescanning a GiST index-on
Previous Message Peter Eisentraut 2017-05-04 01:53:13 pgsql: Fix cursor_to_xml in tableforest false mode