1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

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 0a355b2fe7
commit a69149b1ae
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -233,6 +233,7 @@ is_armored (const byte *buf)
case PKT_COMPRESSED: case PKT_COMPRESSED:
case PKT_ENCRYPTED: case PKT_ENCRYPTED:
case PKT_ENCRYPTED_MDC: case PKT_ENCRYPTED_MDC:
case PKT_ENCRYPTED_AEAD:
case PKT_PLAINTEXT: case PKT_PLAINTEXT:
case PKT_OLD_COMMENT: case PKT_OLD_COMMENT:
case PKT_COMMENT: case PKT_COMMENT: