From f1b63437a53f35bd865ae7d1a2670eba2106b030 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 7 Apr 2020 16:45:34 +0200 Subject: openpgp: Implement VerifiedCert::revocation_keys --- openpgp/src/cert/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'openpgp') diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index 3e239e80..47841cc9 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -39,6 +39,7 @@ use crate::types::{ HashAlgorithm, KeyServerPreferences, ReasonForRevocation, + RevocationKey, RevocationStatus, SymmetricAlgorithm, }; @@ -1496,6 +1497,19 @@ impl<'a> ValidCert<'a> { pub fn user_attributes(&self) -> ValidComponentAmalgamationIter { self.cert.user_attributes().with_policy(self.policy, self.time) } + + /// Returns a list of any designated revokers for this component. + /// + /// This function returns the designated revokers listed on both + /// this component's binding signature and the certificate's + /// direct key signature. + /// + /// Note: the returned list has not been deduplicated. + pub fn revocation_keys(&self) + -> Box + 'a> + { + self.primary_key().revocation_keys() + } } macro_rules! impl_pref { -- cgit v1.2.3