summaryrefslogtreecommitdiffstats
path: root/openpgp/src/policy.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-10-02 09:07:22 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-10-02 15:09:11 +0200
commit81ae4a3a34f7c6df4ea7dd5765d4b493a32f9919 (patch)
treea6065a94be2769717b1fa32dbf14508daf4bf87e /openpgp/src/policy.rs
parentef5cd6b8ce14bc8019771e38825cda9d1f64792e (diff)
openpgp: Make signature verification use a mutable self reference.
- This will allow us to mark subpackets as authenticated by the verification operation.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r--openpgp/src/policy.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs
index 14c54ed7..33d5487f 100644
--- a/openpgp/src/policy.rs
+++ b/openpgp/src/policy.rs
@@ -1662,7 +1662,8 @@ mod test {
.into_keypair().unwrap();
// Create a signature.
- let sig = signature::SignatureBuilder::new(SignatureType::Binary)
+ let mut sig =
+ signature::SignatureBuilder::new(SignatureType::Binary)
.sign_message(&mut keypair, msg).unwrap();
// Make sure the signature is ok.