postgresql/contrib/pgcrypto
Heikki Linnakangas bf723a274c Forbid gen_random_uuid() with --disable-strong-random
Previously, gen_random_uuid() would fall back to a weak random number
generator, unlike gen_random_bytes() which would just fail. And this was
not made very clear in the docs. For consistency, also make
gen_random_uuid() fail outright, if compiled with --disable-strong-random.

Re-word the error message you get with --disable-strong-random. It is also
used by pgp functions that require random salts, and now also
gen_random_uuid().

Reported by Radek Slupik.

Discussion: https://www.postgresql.org/message-id/20170101232054.10135.50528@wrigleys.postgresql.org
2017-07-03 12:10:11 +03:00
..
expected Forbid gen_random_uuid() with --disable-strong-random 2017-07-03 12:10:11 +03:00
sql
.gitignore
blf.c
blf.h
crypt-blowfish.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
crypt-des.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
crypt-gensalt.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
crypt-md5.c
imath.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
imath.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
internal-sha2.c
internal.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
Makefile
mbuf.c
mbuf.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
md5.c
md5.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
openssl.c
pgcrypto--1.0--1.1.sql
pgcrypto--1.1--1.2.sql
pgcrypto--1.2--1.3.sql
pgcrypto--1.3.sql
pgcrypto--unpackaged--1.0.sql
pgcrypto.c Forbid gen_random_uuid() with --disable-strong-random 2017-07-03 12:10:11 +03:00
pgcrypto.control
pgcrypto.h
pgp-armor.c
pgp-cfb.c
pgp-compress.c
pgp-decrypt.c
pgp-encrypt.c
pgp-info.c
pgp-mpi-internal.c
pgp-mpi-openssl.c
pgp-mpi.c
pgp-pgsql.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
pgp-pubdec.c
pgp-pubenc.c
pgp-pubkey.c
pgp-s2k.c
pgp.c
pgp.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
px-crypt.c
px-crypt.h Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
px-hmac.c
px.c Forbid gen_random_uuid() with --disable-strong-random 2017-07-03 12:10:11 +03:00
px.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
rijndael.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
rijndael.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
rijndael.tbl
sha1.c
sha1.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00