]> 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:28 +0000 (12:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 16 Feb 2026 03:18:28 +0000 (12:18 +0900)
commit770d13dd063cb5fb89953a0ffb68b70be716ffa6
tree8b9d6498913db1a5d5ae8bb2234da4a9dcd03f77
parent6e045e1a6e3f1a55d3d246f8258f3316410b26f6
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