pgsql: Refactor RandomSalt to handle salts of different lengths.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor RandomSalt to handle salts of different lengths.
Date: 2016-08-18 10:41:47
Message-ID: E1baKlf-00045H-LS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor RandomSalt to handle salts of different lengths.

All we need is 4 bytes at the moment, for MD5 authentication. But in
upcomint patches for SCRAM authentication, SCRAM will need a salt of
different length. It's less scary for the caller to pass the buffer
length anyway, than assume a certain-sized output buffer.

Author: Michael Paquier
Discussion: <CAB7nPqQvO4sxLFeS9D+NM3wpy08ieZdAj_6e117MQHZAfxBFsg(at)mail(dot)gmail(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fa878703f456b804b01b61a9d94008f57967cdd0

Modified Files
--------------
src/backend/postmaster/postmaster.c | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-08-18 12:44:35 pgsql: Improve formatting of comments in plpgsql.h
Previous Message Magnus Hagander 2016-08-18 10:38:31 pgsql: Update Windows timezone mapping from Windows 7 and 10