pgsql: Refactor RandomSalt to handle salts of different lengths.

Поиск
Список
Период
Сортировка
Искать

pgsql: Refactor RandomSalt to handle salts of different lengths.

От:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Дата:
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: 

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(-)

FAQ