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: | [email protected] |
Views: | Whole Thread | Raw Message | 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
Modified Files
--------------
doc/src/sgml/libpq.sgml | 4 +++-
src/interfaces/libpq/fe-auth.c | 21 ++++++++++++++-------
2 files changed, 17 insertions(+), 8 deletions(-)
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 |