From 6f520703f56624ed11288e3004e180699a48cfd4 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 17 Dec 2019 18:02:46 +0100 Subject: openpgp: Make Subpacket own the data. - The subpacket areas now have a vector of subpackets. Change some accessors here and there to accommodate this. - This requires bit-perfect roundtripping of subpackets so that signatures are not invalidated. - First step towards fixing #200. --- sqv/src/sqv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sqv') diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index 5543efb0..3550fdc8 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -110,14 +110,14 @@ fn real_main() -> Result<(), failure::Error> { // XXX: We use a KeyID even though we have a // fingerprint! - sigs.push((sig, fp.into())); + sigs.push((sig.clone(), fp.into())); } else if let Some(keyid) = sig.issuer() { if trace { eprintln!("Will check signature allegedly issued by {}.", keyid); } - sigs.push((sig, keyid)); + sigs.push((sig.clone(), keyid.clone())); } else { eprintln!("Signature #{} does not contain information \ about the issuer. Unable to validate.", -- cgit v1.2.3