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 | |
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')
-rw-r--r-- | openpgp/examples/encrypt-for.rs | 2 | ||||
-rw-r--r-- | openpgp/examples/sign.rs | 2 |
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. |