diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-12-09 17:08:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-12-09 17:08:53 +0100 |
commit | f355a3abf3b81e240d860ff67b323b6f21f9fd01 (patch) | |
tree | 737edd014e2fc24ab8367e2ac1227c862500e66f | |
parent | 1b0bcd18d0c0cb9980636f56ce1e03f35c827f16 (diff) |
sq: Display all known key flags when inspecting certs.
-rw-r--r-- | sq/src/commands/inspect.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sq/src/commands/inspect.rs b/sq/src/commands/inspect.rs index e275c261..29223422 100644 --- a/sq/src/commands/inspect.rs +++ b/sq/src/commands/inspect.rs @@ -334,6 +334,12 @@ fn inspect_key_flags(flags: openpgp::types::KeyFlags) -> Option<String> { if flags.for_storage_encryption() { capabilities.push("data-at-rest encryption") } + if flags.is_group_key() { + capabilities.push("group key") + } + if flags.is_split_key() { + capabilities.push("split key") + } if capabilities.len() > 0 { Some(capabilities.join(", ")) |