summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/encrypt-for.rs4
-rw-r--r--openpgp/examples/pad.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index e1b580ef..80fe52e5 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -24,8 +24,8 @@ fn main() {
}
let mode = match args[1].as_ref() {
- "at-rest" => KeyFlags::default().set_storage_encryption(),
- "for-transport" => KeyFlags::default().set_transport_encryption(),
+ "at-rest" => KeyFlags::empty().set_storage_encryption(),
+ "for-transport" => KeyFlags::empty().set_transport_encryption(),
x => panic!("invalid mode: {:?}, \
must be either 'at-rest' or 'for-transport'",
x),
diff --git a/openpgp/examples/pad.rs b/openpgp/examples/pad.rs
index d0c7a759..5d31d969 100644
--- a/openpgp/examples/pad.rs
+++ b/openpgp/examples/pad.rs
@@ -24,8 +24,8 @@ fn main() {
}
let mode = match args[1].as_ref() {
- "at-rest" => KeyFlags::default().set_storage_encryption(),
- "for-transport" => KeyFlags::default().set_transport_encryption(),
+ "at-rest" => KeyFlags::empty().set_storage_encryption(),
+ "for-transport" => KeyFlags::empty().set_transport_encryption(),
x => panic!("invalid mode: {:?}, \
must be either 'at-rest' or 'for-transport'",
x),