summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/notarize.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/notarize.rs')
-rw-r--r--openpgp/examples/notarize.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/examples/notarize.rs b/openpgp/examples/notarize.rs
index fc161373..93ca53e1 100644
--- a/openpgp/examples/notarize.rs
+++ b/openpgp/examples/notarize.rs
@@ -28,7 +28,7 @@ fn main() {
.expect("Failed to read key");
let mut n = 0;
- for (_, _, key) in tsk.keys_valid().signing_capable().secret(true) {
+ for (_, _, key) in tsk.keys_valid().signing_capable().secret() {
keys.push({
let mut key = key.clone();
if key.secret().expect("filtered").is_encrypted() {
@@ -41,7 +41,7 @@ fn main() {
.expect("decryption failed");
}
n += 1;
- key.mark_parts_secret().unwrap().into_keypair().unwrap()
+ key.into_keypair().unwrap()
});
}