diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-14 08:32:32 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-14 12:40:46 +0100 |
commit | 19580f8d0901782ada2260d28d7bee572733f8c7 (patch) | |
tree | 3e283f5791ba3085a6dc17d62287d0bed9bf6f0f /autocrypt | |
parent | 8f2078cebf982fdd3aa028f4629ab200709ebcb8 (diff) |
openpgp: Add an option to change the cipher suite used for subkeys.
- Add a parameter to CipherSuite::add_subkey, which, if not None,
overrides the default cipher suite for that subkey.
- This makes it easier to create a key with, say, an ECC primary and
an RSA subkey.
Diffstat (limited to 'autocrypt')
-rw-r--r-- | autocrypt/src/cert.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/autocrypt/src/cert.rs b/autocrypt/src/cert.rs index 772a3f6e..b1bef161 100644 --- a/autocrypt/src/cert.rs +++ b/autocrypt/src/cert.rs @@ -38,6 +38,7 @@ pub fn cert_builder<'a, V, U>(version: V, userid: Option<U>) KeyFlags::default() .set_transport_encryption(true) .set_storage_encryption(true), + None, None); if let Some(userid) = userid { |