summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-07-28 16:48:21 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-07-28 17:02:21 +0200
commitb9f1dac59c758826c7c92541d01f447179a1e4d2 (patch)
treea9c9f465e6433715edb749c21c0a6ae6f0197877 /autocrypt
parentc5f44ce753f3b56338311b9dc9d1d3de86307fa3 (diff)
openpgp: Reimplement the KeyFlags struct using Bitfield.
- This also drops the implementation of PartialOrd since we did not use it in the key selection after all. - Fixes #525.
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/cert.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/autocrypt/src/cert.rs b/autocrypt/src/cert.rs
index dd7b29e1..d0b1fdc1 100644
--- a/autocrypt/src/cert.rs
+++ b/autocrypt/src/cert.rs
@@ -29,12 +29,12 @@ pub fn cert_builder<'a, V, U>(version: V, userid: Option<U>)
})
.set_primary_key_flags(
KeyFlags::default()
- .set_certification(true)
- .set_signing(true))
+ .set_certification()
+ .set_signing())
.add_subkey(
KeyFlags::default()
- .set_transport_encryption(true)
- .set_storage_encryption(true),
+ .set_transport_encryption()
+ .set_storage_encryption(),
None,
None);