Fix importing unencrypted Autocrypt messages.

This commit is contained in:
Justus Winter 2024-12-14 18:39:41 +01:00
parent 90cb8d4ef2
commit 16b0f1ec85
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -68,9 +68,15 @@ where 'store: 'rstore
// See if it is a keyring, or a bare revocation
// certificate.
if let PacketParserResult::Some(ref pp) = ppr {
if let Packet::Signature(_) = pp.packet {
if let Packet::Signature(sig) = &pp.packet {
typ = match sig.typ() {
SignatureType::KeyRevocation |
SignatureType::SubkeyRevocation |
SignatureType::CertificationRevocation =>
// Looks like a bare revocation.
typ = Type::Signature;
Type::Signature,
_ => Type::Other,
};
} else if pp.possible_keyring().is_ok() {
typ = Type::Keyring;
} else {