summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/notarize.rs4
-rw-r--r--openpgp/examples/sign-detached.rs4
-rw-r--r--openpgp/examples/sign.rs4
3 files changed, 6 insertions, 6 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()
});
}
diff --git a/openpgp/examples/sign-detached.rs b/openpgp/examples/sign-detached.rs
index 54c9ceef..8d5f9cfa 100644
--- a/openpgp/examples/sign-detached.rs
+++ b/openpgp/examples/sign-detached.rs
@@ -24,7 +24,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() {
@@ -37,7 +37,7 @@ fn main() {
.expect("decryption failed");
}
n += 1;
- key.mark_parts_secret().unwrap().into_keypair().unwrap()
+ key.into_keypair().unwrap()
});
}
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs
index ec80e87f..8ba0b018 100644
--- a/openpgp/examples/sign.rs
+++ b/openpgp/examples/sign.rs
@@ -23,7 +23,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() {
@@ -36,7 +36,7 @@ fn main() {
.expect("decryption failed");
}
n += 1;
- key.mark_parts_secret().unwrap().into_keypair().unwrap()
+ key.into_keypair().unwrap()
});
}