summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/one_pass_sig.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-17 18:02:46 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-17 18:06:00 +0100
commit6f520703f56624ed11288e3004e180699a48cfd4 (patch)
tree84e857b53a411ff71c69ddd9385a53429b5d1cfc /openpgp/src/packet/one_pass_sig.rs
parentddd960f80c2d88bfcfedc6a0f0b2a3cf0cd783f5 (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 'openpgp/src/packet/one_pass_sig.rs')
-rw-r--r--openpgp/src/packet/one_pass_sig.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/one_pass_sig.rs b/openpgp/src/packet/one_pass_sig.rs
index c3f017ed..b2430a82 100644
--- a/openpgp/src/packet/one_pass_sig.rs
+++ b/openpgp/src/packet/one_pass_sig.rs
@@ -156,7 +156,7 @@ impl<'a> std::convert::TryFrom<&'a Signature> for OnePassSig3 {
fn try_from(s: &'a Signature) -> Result<Self> {
let issuer = match s.issuer() {
- Some(i) => i,
+ Some(i) => i.clone(),
None =>
return Err(Error::InvalidArgument(
"Signature has no issuer".into()).into()),