diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-17 18:02:46 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-17 18:06:00 +0100 |
commit | 6f520703f56624ed11288e3004e180699a48cfd4 (patch) | |
tree | 84e857b53a411ff71c69ddd9385a53429b5d1cfc /sqv | |
parent | ddd960f80c2d88bfcfedc6a0f0b2a3cf0cd783f5 (diff) |
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.
Diffstat (limited to 'sqv')
-rw-r--r-- | sqv/src/sqv.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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.", |