Commit da616950 authored by Tom Lane's avatar Tom Lane

Mop-up for commit feb82545.

Missed these occurrences of some of the adjusted error messages.
Per buildfarm member pademelon.
parent e22b27f0
...@@ -18,25 +18,25 @@ select pgp_sym_decrypt( ...@@ -18,25 +18,25 @@ select pgp_sym_decrypt(
pgp_sym_encrypt('Secret message', 'key', 'compress-algo=0'), pgp_sym_encrypt('Secret message', 'key', 'compress-algo=0'),
'key', 'expect-compress-algo=0'); 'key', 'expect-compress-algo=0');
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
select pgp_sym_decrypt( select pgp_sym_decrypt(
pgp_sym_encrypt('Secret message', 'key', 'compress-algo=1'), pgp_sym_encrypt('Secret message', 'key', 'compress-algo=1'),
'key', 'expect-compress-algo=1'); 'key', 'expect-compress-algo=1');
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
select pgp_sym_decrypt( select pgp_sym_decrypt(
pgp_sym_encrypt('Secret message', 'key', 'compress-algo=2'), pgp_sym_encrypt('Secret message', 'key', 'compress-algo=2'),
'key', 'expect-compress-algo=2'); 'key', 'expect-compress-algo=2');
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
-- level=0 should turn compression off -- level=0 should turn compression off
select pgp_sym_decrypt( select pgp_sym_decrypt(
pgp_sym_encrypt('Secret message', 'key', pgp_sym_encrypt('Secret message', 'key',
'compress-algo=2, compress-level=0'), 'compress-algo=2, compress-level=0'),
'key', 'expect-compress-algo=0'); 'key', 'expect-compress-algo=0');
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
...@@ -367,8 +367,8 @@ a3nsOzKTXUfS9VyaXo8IrncM6n7fdaXpwba/3tNsAhJG4lDv1k4g9v8Ix2dfv6Rs ...@@ -367,8 +367,8 @@ a3nsOzKTXUfS9VyaXo8IrncM6n7fdaXpwba/3tNsAhJG4lDv1k4g9v8Ix2dfv6Rs
-- check BUG #11905, problem with messages 6 less than a power of 2. -- check BUG #11905, problem with messages 6 less than a power of 2.
select pgp_sym_decrypt(pgp_sym_encrypt(repeat('x',65530),'1'),'1') = repeat('x',65530); select pgp_sym_decrypt(pgp_sym_encrypt(repeat('x',65530),'1'),'1') = repeat('x',65530);
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
-- expected: true -- expected: true
-- Negative tests -- Negative tests
-- Decryption with a certain incorrect key yields an apparent Literal Data -- Decryption with a certain incorrect key yields an apparent Literal Data
...@@ -390,8 +390,8 @@ ERROR: Wrong key or corrupt data ...@@ -390,8 +390,8 @@ ERROR: Wrong key or corrupt data
-- Routine text/binary mismatch. -- Routine text/binary mismatch.
select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1'); select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1');
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
-- Decryption with a certain incorrect key yields an apparent BZip2-compressed -- Decryption with a certain incorrect key yields an apparent BZip2-compressed
-- plaintext. Ciphertext source: iterative pgp_sym_encrypt('secret', 'key') -- plaintext. Ciphertext source: iterative pgp_sym_encrypt('secret', 'key')
-- until the random prefix gave rise to that property. -- until the random prefix gave rise to that property.
......
This diff is collapsed.
...@@ -9,29 +9,29 @@ select pgp_pub_decrypt( ...@@ -9,29 +9,29 @@ select pgp_pub_decrypt(
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=1; from keytbl where keytbl.id=1;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
select pgp_pub_decrypt( select pgp_pub_decrypt(
pgp_pub_encrypt('Secret msg', dearmor(pubkey)), pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=2; from keytbl where keytbl.id=2;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
select pgp_pub_decrypt( select pgp_pub_decrypt(
pgp_pub_encrypt('Secret msg', dearmor(pubkey)), pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=3; from keytbl where keytbl.id=3;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
select pgp_pub_decrypt( select pgp_pub_decrypt(
pgp_pub_encrypt('Secret msg', dearmor(pubkey)), pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=6; from keytbl where keytbl.id=6;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
-- try with rsa-sign only -- try with rsa-sign only
select pgp_pub_decrypt( select pgp_pub_decrypt(
pgp_pub_encrypt('Secret msg', dearmor(pubkey)), pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
...@@ -50,13 +50,13 @@ select pgp_pub_decrypt_bytea( ...@@ -50,13 +50,13 @@ select pgp_pub_decrypt_bytea(
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=1; from keytbl where keytbl.id=1;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
-- and bytea-to-text? -- and bytea-to-text?
select pgp_pub_decrypt( select pgp_pub_decrypt(
pgp_pub_encrypt_bytea('Secret msg', dearmor(pubkey)), pgp_pub_encrypt_bytea('Secret msg', dearmor(pubkey)),
dearmor(seckey)) dearmor(seckey))
from keytbl where keytbl.id=1; from keytbl where keytbl.id=1;
ERROR: generating random data is not supported by this build ERROR: generating random data is not supported by this build
DETAIL: This functionality requires a source of strong random numbers DETAIL: This functionality requires a source of strong random numbers.
HINT: You need to rebuild PostgreSQL using --enable-strong-random HINT: You need to rebuild PostgreSQL using --enable-strong-random.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment