diff options
Diffstat (limited to 'openpgp/examples/generate-sign-verify.rs')
-rw-r--r-- | openpgp/examples/generate-sign-verify.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/generate-sign-verify.rs b/openpgp/examples/generate-sign-verify.rs index e3142667..12709609 100644 --- a/openpgp/examples/generate-sign-verify.rs +++ b/openpgp/examples/generate-sign-verify.rs @@ -45,7 +45,7 @@ fn sign(p: &dyn Policy, sink: &mut dyn Write, plaintext: &str, tsk: &openpgp::Ce -> openpgp::Result<()> { // Get the keypair to do the signing from the Cert. let keypair = tsk - .keys().set_policy(p, None).alive().revoked(false).for_signing() + .keys().with_policy(p, None).alive().revoked(false).for_signing() .nth(0).unwrap() .key().clone().mark_parts_secret().unwrap().into_keypair()?; |