summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-08-18 13:41:17 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-08-18 13:41:17 +0300
commitfa878703f456b804b01b61a9d94008f57967cdd0 (patch)
treed170f3046c0fcd9f62ab6932c0846fac3f6c535c /src/backend/access/gist/gistutil.c
parenta79a68562240c58f21680483a8d2e137803bd48f (diff)
downloadpostgresql-fa878703f456b804b01b61a9d94008f57967cdd0.tar.gz
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@mail.gmail.com>
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions