pgsql: pgcrypto: Tweak error message for incorrect session key length

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgcrypto: Tweak error message for incorrect session key length
Date: 2026-02-16 03:19:23
Message-ID: E1vrp8s-0012A1-18@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)parragi(at)percona(dot)com>
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7eb4bdfa42ba96b749414cbc6d334b95de85c322

Modified Files
--------------
contrib/pgcrypto/expected/pgp-pubkey-session.out | 2 +-
contrib/pgcrypto/px.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-02-16 04:59:21 pgsql: Remove recovery.signal at recovery end when both signal files ar
Previous Message Michael Paquier 2026-02-16 01:15:08 Re: pgsql: postgres_fdw: Inherit the local transaction's access/deferrable