summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/builder.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-12-11 17:06:05 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-11 18:24:34 +0100
commite21a3572b82f56b75bbba771ae6824c22045e10a (patch)
treea13dfd545073aeeabd642f04aa54a71cfda429bc /openpgp/src/cert/builder.rs
parent9675e949909aef163dea230ad80ee7df1cba1ff8 (diff)
openpgp: Remove ComponentAmalgamation::revocation_keys.
- Remove the function. - Remove associated tests. - Cert::revocation_keys does examine all live self-signatures. - Fixes #629.
Diffstat (limited to 'openpgp/src/cert/builder.rs')
-rw-r--r--openpgp/src/cert/builder.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs
index 16a4339f..15d0a350 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -1381,17 +1381,6 @@ mod tests {
assert_eq!(cert.revocation_keys(p).collect::<HashSet<_>>(),
revokers.iter().collect::<HashSet<_>>());
- // The designated revokers on the direct signature should also
- // be returned when querying components for designated
- // revokers.
- assert_eq!(
- cert.primary_key().revocation_keys(p).collect::<HashSet<_>>(),
- revokers.iter().collect::<HashSet<_>>());
- assert_eq!(
- cert.primary_userid()?.revocation_keys(p).collect::<HashSet<_>>(),
- revokers.iter().collect::<HashSet<_>>());
-
-
// Do it again, with a key that has no User IDs.
let (cert,_) = CertBuilder::new()
.set_revocation_keys(revokers.clone())
@@ -1402,13 +1391,6 @@ mod tests {
assert_eq!(cert.revocation_keys(p).collect::<HashSet<_>>(),
revokers.iter().collect::<HashSet<_>>());
- // The designated revokers on the direct signature should also
- // be returned when querying components for designated
- // revokers.
- assert_eq!(
- cert.primary_key().revocation_keys(p).collect::<HashSet<_>>(),
- revokers.iter().collect::<HashSet<_>>());
-
// The designated revokers on all signatures should be
// considered.
let now = crate::types::Timestamp::now();