summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/encrypt-for.rs2
-rw-r--r--openpgp/examples/sign.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index c65d73f8..5fe9360f 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -47,7 +47,7 @@ fn main() {
&recipients,
mode)
.expect("Failed to create encryptor");
- let mut literal_writer = LiteralWriter::new(encryptor, 't', None, 0)
+ let mut literal_writer = LiteralWriter::new(encryptor, 't', None, None)
.expect("Failed to create literal writer");
// Finally, copy stdin to our writer stack to encrypt the data.
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs
index 2e212c78..1d2376c2 100644
--- a/openpgp/examples/sign.rs
+++ b/openpgp/examples/sign.rs
@@ -37,7 +37,7 @@ fn main() {
// Then, create a literal writer to wrap the data in a literal
// message packet.
- let mut literal = LiteralWriter::new(signer, 'b', None, 0)
+ let mut literal = LiteralWriter::new(signer, 'b', None, None)
.expect("Failed to create literal writer");
// Finally, just copy all the data.