summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-03 18:22:55 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-03 18:32:03 +0200
commita9ca727cab50c0c91098a7ef8aea79f5f62a1f5c (patch)
treee7122be749e5b3b26ee96969f4f9e8347fe6532b /autocrypt
parent6494b37775ada713e8ff139ee40c5accdfcaf16a (diff)
openpgp: Unawkwardify the streaming encryptor.
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs
index 54133602..7a1a571a 100644
--- a/autocrypt/src/lib.rs
+++ b/autocrypt/src/lib.rs
@@ -487,8 +487,8 @@ impl AutocryptSetupMessage {
{
// Passphrase-Format header with value numeric9x4
let m = Message::new(&mut armor_writer);
- let w = Encryptor::with_password(m, self.passcode.clone().unwrap())
- .build()?;
+ let w = Encryptor::with_passwords(
+ m, vec![self.passcode.clone().unwrap()]).build()?;
let mut w = LiteralWriter::new(w).build()?;