aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-05-16 10:37:45 +0000
committerWerner Koch <[email protected]>2025-05-16 12:26:45 +0000
commit8e529f92219453195073d8a37670dbdf1f3a7e30 (patch)
tree4769d2644ead6fbe92b05e8e41fa8aba9cde9f82 /g10/options.h
parentRevert "w32: On socket nonce mismatch close the socket." (diff)
downloadgnupg-8e529f92219453195073d8a37670dbdf1f3a7e30.tar.gz
gnupg-8e529f92219453195073d8a37670dbdf1f3a7e30.zip
gpg: Do not allow compressed key packets on import.
* g10/import.c (read_block): Bail out on compressed packets. * g10/options.h (COMPAT_COMPR_KEYS): New. * g10/gpg.c (compatibility_flags): Add "compr-keys". * common/util.h: Remove replacement code not any longer needed. (GPG_ERR_UNEXPECTED_PACKET): Add a new replacement code. -- Compressed key packets do not make much sense but historically they were supported. Thus we also add a compatibility flag. GnuPG-bug-id: 7014
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h
index 59a3cab73..fe81a0baf 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -399,7 +399,7 @@ EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
/* Compatibility flags */
#define COMPAT_PARALLELIZED 1 /* Use threaded hashing for signatures. */
#define COMPAT_T7014_OLD 2 /* Use initial T7014 test data. */
-
+#define COMPAT_COMPR_KEYS 4 /* Allow import of compressed keys. (T7014) */
/* Compliance test macros. */
#define GNUPG (opt.compliance==CO_GNUPG || opt.compliance==CO_DE_VS)