diff options
Diffstat (limited to 'contrib/pgcrypto/expected/crypt-des.out')
-rw-r--r-- | contrib/pgcrypto/expected/crypt-des.out | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/pgcrypto/expected/crypt-des.out b/contrib/pgcrypto/expected/crypt-des.out index a462dcd580a..70ca7b357b2 100644 --- a/contrib/pgcrypto/expected/crypt-des.out +++ b/contrib/pgcrypto/expected/crypt-des.out @@ -28,4 +28,11 @@ FROM ctest; t (1 row) +-- check disabling of built in crypto functions +SET pgcrypto.builtin_crypto_enabled = off; +UPDATE ctest SET salt = gen_salt('des'); +ERROR: use of built-in crypto functions is disabled +UPDATE ctest SET res = crypt(data, salt); +ERROR: use of built-in crypto functions is disabled +RESET pgcrypto.builtin_crypto_enabled; DROP TABLE ctest; |