summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-18 13:12:48 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-18 13:12:48 +0100
commit77c344092bea390e11f7fa009aa3b6fb6dcfd6f9 (patch)
tree28b4417fd4ecee401a10d8d100ac5cc44fbe8359 /openpgp/src/parse
parente0ebe3eba4257266822f62aa22809aa9b5ade56c (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')
-rw-r--r--openpgp/src/parse/parse.rs5
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(