From 77c344092bea390e11f7fa009aa3b6fb6dcfd6f9 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 18 Dec 2019 13:12:48 +0100 Subject: 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. --- openpgp/src/parse/parse.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'openpgp/src/parse') 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( -- cgit v1.2.3