diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 10:16:37 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 10:16:37 +0200 |
commit | 6b9a1cc320a53e28fb1b9c99cb7897db797f253a (patch) | |
tree | 49717ce2e64ad4de2576e4717abcea67aa8e1ce8 /openpgp/examples/encrypt-for.rs | |
parent | 4ba3f2845de226bb6dd675fea35cdb4ad1b538a9 (diff) |
openpgp: Use broken-down time in the literal data packet.
- Also, make the `date` argument in the LiteralWriter's constructor
optional, and explain what the parameters are for.
Diffstat (limited to 'openpgp/examples/encrypt-for.rs')
-rw-r--r-- | openpgp/examples/encrypt-for.rs | 2 |
1 files changed, 1 insertions, 1 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. |