On Thu, Apr 6, 2017 at 8:04 AM, Michael Paquier
<michael.paqu...@gmail.com> wrote:
> On Thu, Apr 6, 2017 at 2:11 AM, Heikki Linnakangas <hlinn...@iki.fi> wrote:
>> At a quick glance, moving pg_frontend_random() to src/common looks like a
>> non-starter. It uses pglock_thread() which is internal to libpq, so it won't
>> compile as it is. I think I'm going to change scram_build_verifier() to take
>> a pre-generated salt as argument, to avoid the need for a random number
>> generator in src/common.
>
> Oops. Need an updated set of patches?

Attached is an updated set of patches anyway. This is similar to the
last set, except that I removed the part where pg_frontend_random() is
refactored, extending scram_build_verifier() to use a pre-generated
salt.

Hope that helps.
-- 
Michael

Attachment: 0001-Use-base64-based-encoding-for-stored-and-server-keys.patch
Description: Binary data

Attachment: 0002-Move-routine-to-build-SCRAM-verifier-into-src-common.patch
Description: Binary data

Attachment: 0003-Refactor-frontend-side-random-number-generation.patch
Description: Binary data

Attachment: 0004-Extend-PQencryptPassword-with-a-hashing-method.patch
Description: Binary data

Attachment: 0005-Extend-psql-s-password-and-createuser-to-handle-SCRA.patch
Description: Binary data

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to