diff options
Diffstat (limited to 'openpgp/examples/generate-encrypt-decrypt.rs')
-rw-r--r-- | openpgp/examples/generate-encrypt-decrypt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/examples/generate-encrypt-decrypt.rs b/openpgp/examples/generate-encrypt-decrypt.rs index 3fb00103..369e82ba 100644 --- a/openpgp/examples/generate-encrypt-decrypt.rs +++ b/openpgp/examples/generate-encrypt-decrypt.rs @@ -46,7 +46,8 @@ fn encrypt(sink: &mut Write, plaintext: &str, recipient: &openpgp::TPK) let encryptor = Encryptor::new(message, &[], // No symmetric encryption. &[recipient], - EncryptionMode::ForTransport)?; + EncryptionMode::ForTransport, + None)?; // Emit a literal data packet. let mut literal_writer = LiteralWriter::new( |