summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-11-09 12:05:36 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-11-09 12:07:06 +0100
commitff903a69591c0dbd37c0ec69f837dceacc4d4a22 (patch)
treebb998260a7e85d521434eb94388f2930c6335c94 /openpgp/src/types
parentaeacd64d736bbdbc5a0072b57605dcde7a2f0e44 (diff)
openpgp: Fix documentation, add missing KeyFlags::clear_group_key.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/key_flags.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs
index 03bf9f1f..50f96f6a 100644
--- a/openpgp/src/types/key_flags.rs
+++ b/openpgp/src/types/key_flags.rs
@@ -364,12 +364,18 @@ impl KeyFlags {
self.get(KEY_FLAG_GROUP_KEY)
}
- /// Declares that the private component of this key should not be
- /// in possession of more than one person.
+ /// Declares that the private component of this key is in
+ /// possession of more than one person.
pub fn set_group_key(self) -> Self {
self.set(KEY_FLAG_GROUP_KEY)
}
+ /// Declares that the private component of this key should not be
+ /// in possession of more than one person.
+ pub fn clear_group_key(self) -> Self {
+ self.clear(KEY_FLAG_GROUP_KEY)
+ }
+
/// Returns whether no flags are set.
pub fn is_empty(&self) -> bool {
self.as_slice().iter().all(|b| *b == 0)