summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r--openpgp/src/parse/parse.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index e7b1e293..3a3686a8 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -3613,6 +3613,17 @@ impl <'a> PacketParser<'a> {
Ok(p.body())
},
+ Packet::Unknown(p) => {
+ if rest.len() > 0 {
+ if p.body().len() > 0 {
+ p.body_mut().append(&mut rest);
+ } else {
+ p.set_body(rest);
+ }
+ }
+
+ Ok(p.body())
+ },
p => {
if rest.len() > 0 {
if let Some(body) = p.body_mut() {