]> granicus.if.org Git - postgresql/commitdiff
Mop-up for commit feb8254518752b2cb4a8964c374dd82d49ef0e0d.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 03:44:01 +0000 (23:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 03:44:22 +0000 (23:44 -0400)
Missed these occurrences of some of the adjusted error messages.
Per buildfarm member pademelon.

contrib/pgcrypto/expected/pgp-compression_1.out
contrib/pgcrypto/expected/pgp-decrypt_1.out
contrib/pgcrypto/expected/pgp-encrypt_1.out
contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out

index 8a046d84964e81cb6e474ff394a28e85d3ac8099..655830ae140c581236f10f785a9a893dd1c38873 100644 (file)
@@ -18,25 +18,25 @@ select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret message', 'key', 'compress-algo=0'),
        'key', 'expect-compress-algo=0');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret message', 'key', 'compress-algo=1'),
        'key', 'expect-compress-algo=1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret message', 'key', 'compress-algo=2'),
        'key', 'expect-compress-algo=2');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- level=0 should turn compression off
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret message', 'key',
                        'compress-algo=2, compress-level=0'),
        'key', 'expect-compress-algo=0');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
index 431bac2b410e0df58455f2ef17e8015ea23d6e86..f3df4e618ad71dc257c4a681bdf19a7283dc48e9 100644 (file)
@@ -367,8 +367,8 @@ a3nsOzKTXUfS9VyaXo8IrncM6n7fdaXpwba/3tNsAhJG4lDv1k4g9v8Ix2dfv6Rs
 -- 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);
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- expected: true
 -- Negative tests
 -- Decryption with a certain incorrect key yields an apparent Literal Data
@@ -390,8 +390,8 @@ ERROR:  Wrong key or corrupt data
 -- Routine text/binary mismatch.
 select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- Decryption with a certain incorrect key yields an apparent BZip2-compressed
 -- plaintext.  Ciphertext source: iterative pgp_sym_encrypt('secret', 'key')
 -- until the random prefix gave rise to that property.
index 48346e8e7e0f4f3fe856686682897138a06139db..72f346414abf40e9bff36e64c8d90334671348b7 100644 (file)
@@ -5,8 +5,8 @@
 SET bytea_output TO escape;
 select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), 'key');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- check whether the defaults are ok
 select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'),
        'key', 'expect-cipher-algo=aes128,
@@ -17,8 +17,8 @@ select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'),
                expect-compress-algo=0
                ');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- maybe the expect- stuff simply does not work
 select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'),
        'key', 'expect-cipher-algo=bf,
@@ -29,133 +29,133 @@ select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'),
                expect-compress-algo=1
                ');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- bytea as text
 select pgp_sym_decrypt(pgp_sym_encrypt_bytea('Binary', 'baz'), 'baz');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- text as bytea
 select pgp_sym_decrypt_bytea(pgp_sym_encrypt('Text', 'baz'), 'baz');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- algorithm change
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=bf'),
        'key', 'expect-cipher-algo=bf');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=aes'),
        'key', 'expect-cipher-algo=aes128');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'cipher-algo=aes192'),
        'key', 'expect-cipher-algo=aes192');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- s2k change
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-mode=0'),
        'key', 'expect-s2k-mode=0');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-mode=1'),
        'key', 'expect-s2k-mode=1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-mode=3'),
        'key', 'expect-s2k-mode=3');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- s2k count change
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-count=1024'),
        'key', 'expect-s2k-count=1024');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- s2k_count rounds up
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-count=65000000'),
        'key', 'expect-s2k-count=65000000');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- s2k digest change
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=md5'),
        'key', 'expect-s2k-digest-algo=md5');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
                pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=sha1'),
        'key', 'expect-s2k-digest-algo=sha1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- sess key
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'sess-key=0'),
        'key', 'expect-sess-key=0');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'sess-key=1'),
        'key', 'expect-sess-key=1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=bf'),
        'key', 'expect-sess-key=1, expect-cipher-algo=bf');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=aes192'),
        'key', 'expect-sess-key=1, expect-cipher-algo=aes192');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_sym_decrypt(
        pgp_sym_encrypt('Secret.', 'key', 'sess-key=1, cipher-algo=aes256'),
        'key', 'expect-sess-key=1, expect-cipher-algo=aes256');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- no mdc
 select pgp_sym_decrypt(
                pgp_sym_encrypt('Secret.', 'key', 'disable-mdc=1'),
        'key', 'expect-disable-mdc=1');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- crlf
 select encode(pgp_sym_decrypt_bytea(
        pgp_sym_encrypt(E'1\n2\n3\r\n', 'key', 'convert-crlf=1'),
        'key'), 'hex');
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- conversion should be lossless
 select encode(digest(pgp_sym_decrypt(
   pgp_sym_encrypt(E'\r\n0\n1\r\r\n\n2\r', 'key', 'convert-crlf=1'),
        'key', 'convert-crlf=1'), 'sha1'), 'hex') as result,
   encode(digest(E'\r\n0\n1\r\r\n\n2\r', 'sha1'), 'hex') as expect;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
index 41c54e47169f5fb7bed65df8aca9dd50ed75e3b7..6da4c6da41314b8bc02c884f4cee144c23590f3f 100644 (file)
@@ -9,29 +9,29 @@ select pgp_pub_decrypt(
        dearmor(seckey))
 from keytbl where keytbl.id=1;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_pub_decrypt(
                pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
                dearmor(seckey))
 from keytbl where keytbl.id=2;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_pub_decrypt(
                pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
                dearmor(seckey))
 from keytbl where keytbl.id=3;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 select pgp_pub_decrypt(
                pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
                dearmor(seckey))
 from keytbl where keytbl.id=6;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- try with rsa-sign only
 select pgp_pub_decrypt(
                pgp_pub_encrypt('Secret msg', dearmor(pubkey)),
@@ -50,13 +50,13 @@ select pgp_pub_decrypt_bytea(
                dearmor(seckey))
 from keytbl where keytbl.id=1;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.
 -- and bytea-to-text?
 select pgp_pub_decrypt(
                pgp_pub_encrypt_bytea('Secret msg', dearmor(pubkey)),
                dearmor(seckey))
 from keytbl where keytbl.id=1;
 ERROR:  generating random data is not supported by this build
-DETAIL:  This functionality requires a source of strong random numbers
-HINT:  You need to rebuild PostgreSQL using --enable-strong-random
+DETAIL:  This functionality requires a source of strong random numbers.
+HINT:  You need to rebuild PostgreSQL using --enable-strong-random.