diff options
Diffstat (limited to 'openpgp/src/autocrypt.rs')
-rw-r--r-- | openpgp/src/autocrypt.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/autocrypt.rs b/openpgp/src/autocrypt.rs index 4f7596bb..d283ca1d 100644 --- a/openpgp/src/autocrypt.rs +++ b/openpgp/src/autocrypt.rs @@ -467,9 +467,8 @@ impl AutocryptSetupMessage { // Passphrase-Format header with value numeric9x4 let m = Message::new(w); - let w = Encryptor::new(m, - vec![ self.passcode.as_ref().unwrap() ], - &[], None, None)?; + let w = Encryptor::with_password(m, self.passcode.clone().unwrap()) + .build()?; let mut w = LiteralWriter::new(w).build()?; |