diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 12:30:46 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 12:30:46 +0200 |
commit | 8d1c467e46499dc41d28a09c81b11dc37ec9431d (patch) | |
tree | 9d5389b4ce3af5a51a6552356cc9fcdbbf678fe8 /tool | |
parent | 9ce7ed2c8f53ece40b7f48d5cb9e7e06e80524e3 (diff) |
tool: Use the new type.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/src/commands.rs b/tool/src/commands.rs index cd591f52..7559355b 100644 --- a/tool/src/commands.rs +++ b/tool/src/commands.rs @@ -5,6 +5,7 @@ use std::io::{self, Write}; use rpassword; extern crate openpgp; +use openpgp::constants::DataFormat; use openpgp::Packet; use openpgp::packet::Tag; use openpgp::parse::PacketParserResult; @@ -154,7 +155,8 @@ pub fn encrypt(store: &mut store::Store, &recipients, EncryptionMode::AtRest) .context("Failed to create encryptor")?; - let mut literal_writer = LiteralWriter::new(encryptor, 'b', None, None) + let mut literal_writer = LiteralWriter::new(encryptor, DataFormat::Binary, + None, None) .context("Failed to create literal writer")?; // Finally, copy stdin to our writer stack to encrypt the data. |