diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 13:12:48 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 13:12:48 +0100 |
commit | 77c344092bea390e11f7fa009aa3b6fb6dcfd6f9 (patch) | |
tree | 28b4417fd4ecee401a10d8d100ac5cc44fbe8359 /openpgp/src/parse/parse.rs | |
parent | e0ebe3eba4257266822f62aa22809aa9b5ade56c (diff) |
openpgp: Make SubpacketValue::EmbeddedSignature take a Signature.
- Now that we eagerly check the syntax, there no longer is the need
for storing Unknown packets there.
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r-- | openpgp/src/parse/parse.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index a05a40cd..33b27d1a 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -1352,10 +1352,7 @@ impl Subpacket { SubpacketTag::EmbeddedSignature => SubpacketValue::EmbeddedSignature( Signature::from_bytes( - &php.parse_bytes("embedded sig", len)?)? - .into() // XXX: This should just be a Signature, really. - ), - + &php.parse_bytes("embedded sig", len)?)?), SubpacketTag::IssuerFingerprint => { if len == 0 { return Err(Error::MalformedPacket( |