diff options
Diffstat (limited to 'openpgp/src/packet/container.rs')
-rw-r--r-- | openpgp/src/packet/container.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openpgp/src/packet/container.rs b/openpgp/src/packet/container.rs index fd8c0f2f..7bfc20ba 100644 --- a/openpgp/src/packet/container.rs +++ b/openpgp/src/packet/container.rs @@ -12,7 +12,10 @@ use xxhash_rust::xxh3::Xxh3; use crate::{ Packet, - packet::Iter, + packet::{ + Iter, + SEIP, + }, }; /// A packet's body holds either unprocessed bytes, processed bytes, @@ -400,7 +403,8 @@ impl Packet { use std::ops::Deref; match self { Packet::CompressedData(p) => Some(p.deref()), - Packet::SEIP(p) => Some(p.deref()), + Packet::SEIP(SEIP::V1(p)) => Some(p.deref()), + Packet::SEIP(SEIP::V2(p)) => Some(p.deref()), Packet::AED(p) => Some(p.deref()), Packet::Literal(p) => Some(p.container_ref()), Packet::Unknown(p) => Some(p.container_ref()), @@ -413,7 +417,8 @@ impl Packet { use std::ops::DerefMut; match self { Packet::CompressedData(p) => Some(p.deref_mut()), - Packet::SEIP(p) => Some(p.deref_mut()), + Packet::SEIP(SEIP::V1(p)) => Some(p.deref_mut()), + Packet::SEIP(SEIP::V2(p)) => Some(p.deref_mut()), Packet::AED(p) => Some(p.deref_mut()), Packet::Literal(p) => Some(p.container_mut()), Packet::Unknown(p) => Some(p.container_mut()), |