diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 16:36:50 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 16:39:06 +0100 |
commit | f53c77752ff04c3713c175a76a06723042e681ae (patch) | |
tree | ed287a180cd25fbf70f33854d353bfcabda9e768 /tool/src/commands/key.rs | |
parent | 4f886702d004830df94dd03d02763dcffb9c92fc (diff) |
openpgp: Allow creation of subkeys with explicit expiration time.
- Fixes #366.
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r-- | tool/src/commands/key.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index 16945252..1d825bf8 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -150,11 +150,13 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { } (Some("rest"), false) => { builder = builder.add_subkey(KeyFlags::default() - .set_encrypt_at_rest(true)); + .set_encrypt_at_rest(true), + None); } (Some("transport"), false) => { builder = builder.add_subkey(KeyFlags::default() - .set_encrypt_for_transport(true)); + .set_encrypt_for_transport(true), + None); } (None, true) => { /* no encryption subkey */ } (Some(_), true) => { |