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.
This commit is contained in:
Werner Koch 2022-11-02 17:10:59 +01:00
parent e284f62b1c
commit 82c4f26b67
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,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: