diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 14:20:50 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 15:06:35 +0200 |
commit | d4e5e6c48aadd01fc3a96917f36d3ec9649639b6 (patch) | |
tree | d5d59205dfbd548aa91d0f99b7e1a1a5da1e659e /openpgp-ffi | |
parent | abc14eb1fabc3c85d74ed93ea7779f12201c4219 (diff) |
openpgp: Make password argument polymorphic.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/serialize.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openpgp-ffi/src/serialize.rs b/openpgp-ffi/src/serialize.rs index 8b0fedbd..9613886c 100644 --- a/openpgp-ffi/src/serialize.rs +++ b/openpgp-ffi/src/serialize.rs @@ -13,9 +13,6 @@ use libc::{c_char, size_t, ssize_t}; extern crate sequoia_openpgp as openpgp; extern crate time; -use self::openpgp::{ - crypto::Password, -}; use self::openpgp::constants::{ AEADAlgorithm, HashAlgorithm, @@ -347,7 +344,7 @@ pub extern "C" fn pgp_encryptor_new<'a> Some(aead_algo.into()) }; ffi_try_box!(Encryptor::new(*inner, - &passwords_.iter().collect::<Vec<&Password>>(), + passwords_.iter().collect::<Vec<_>>(), recipients_, cipher_algo, aead_algo)) |