diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 17:50:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-04 13:21:47 +0100 |
commit | 8354d849b19170a9a2c2b97179d9aaedb6fca6cf (patch) | |
tree | 12578d07af9c4d104571e1055e1d40af4eae99ed /tool/src/commands/key.rs | |
parent | 807eee2432de52715a2e3c7167d5e859ca3315a8 (diff) |
openpgp: Rename KeyFlag's accessors.
- Fixes #359.
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r-- | tool/src/commands/key.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index 8617cc9f..2c081f65 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -150,12 +150,12 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { } (Some("rest"), false) => { builder = builder.add_subkey(KeyFlags::default() - .set_encrypt_at_rest(true), + .set_storage_encryption(true), None); } (Some("transport"), false) => { builder = builder.add_subkey(KeyFlags::default() - .set_encrypt_for_transport(true), + .set_transport_encryption(true), None); } (None, true) => { /* no encryption subkey */ } |