aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-01-26 08:41:00 +0000
committerWerner Koch <[email protected]>2024-01-26 08:41:00 +0000
commitdfa60c09f5cd992515df5fdb275dbee7f8f23b71 (patch)
treee68215d4b947727fa98eb8c95244b8819b058b1e /g10/parse-packet.c
parentgpg: Clean up pk_ecdh_decrypt function. (diff)
parentPost release updates (diff)
downloadgnupg-dfa60c09f5cd992515df5fdb275dbee7f8f23b71.tar.gz
gnupg-dfa60c09f5cd992515df5fdb275dbee7f8f23b71.zip
Merge branch 'STABLE-BRANCH-2-4'
-- Fixed conflicts: NEWS configure.ac doc/gpg.texi
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 31c77de93..34760a2d1 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2765,7 +2765,16 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
{
ski->is_protected = 1;
ski->s2k.count = 0;
- if (ski->algo == 254 || ski->algo == 255)
+ if (ski->algo == 253)
+ {
+ if (list_mode)
+ es_fprintf (listfp,
+ "\tS2K pseudo algo %d is not yet supported\n",
+ ski->algo);
+ err = gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+ goto leave;
+ }
+ else if (ski->algo == 254 || ski->algo == 255)
{
if (pktlen < 3)
{