]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pgcrypto: Tweak error message for incorrect session key length
authorMichael Paquier <michael@paquier.xyz>
Mon, 16 Feb 2026 03:18:33 +0000 (12:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 16 Feb 2026 03:18:33 +0000 (12:18 +0900)
commit0bc0fc789dcf3f60e571f9ce749c1168134de70d
tree823d92c893d9a9b78a421d42d84a5c4f944e8642
parenta20eb248c51ad6741bbbb3b3bac103d5788bd4f5
pgcrypto: Tweak error message for incorrect session key length

The error message added in 379695d3cc70 referred to the public key being
too long.  This is confusing as it is in fact the session key included
in a PGP message which is too long.  This is harmless, but let's be
precise about what is wrong.

Per offline report.

Reported-by: Zsolt Parragi <zsolt.parragi@percona.com>
Backpatch-through: 14
contrib/pgcrypto/expected/pgp-pubkey-session.out
contrib/pgcrypto/px.c