aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-11-02 16:10:59 +0000
committerWerner Koch <[email protected]>2022-11-25 12:56:15 +0000
commitaf1d4ff2eadc4d4175ccc24f88d38dc9d48dcfca (patch)
tree7ccf09ca64fdffbfe035dbbbea9c5c058bb16959
parentgpg: New option --compatibility-flags (diff)
downloadgnupg-af1d4ff2eadc4d4175ccc24f88d38dc9d48dcfca.tar.gz
gnupg-af1d4ff2eadc4d4175ccc24f88d38dc9d48dcfca.zip
gpg: Make --list-packets work w/o --no-armor for plain OCB packets.
* g10/armor.c (is_armored): Add PKT_ENCRYPTED_AEAD. -- With this fix it is now possible to feed a vanilla packet of type 20 without first forcing gpg to assume binary mode.
-rw-r--r--g10/armor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 36215a33e..8fcb74ac5 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -233,6 +233,7 @@ is_armored (const byte *buf)
case PKT_COMPRESSED:
case PKT_ENCRYPTED:
case PKT_ENCRYPTED_MDC:
+ case PKT_ENCRYPTED_AEAD:
case PKT_PLAINTEXT:
case PKT_OLD_COMMENT:
case PKT_COMMENT: