diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-04-27 13:41:48 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-04-28 08:32:40 +0200 |
commit | 22a777c7c5db1d35642bfb9d2ab44b4833937956 (patch) | |
tree | 2f6ff41f3034ac48b642ed3280b1b2d5f02ebcf6 /openpgp/src/packet_pile.rs | |
parent | 313c9ef9774c20d6e3dfe1f53ad3fdc7181c60dd (diff) |
openpgp: Rename Cert::revoked, etc. to revocation_status
- Rename `Cert::revoked`, `ValidCert::revoked`,
`ValidAmalgamation::revoked`, and `ComponentBundle::revoked` to
revocation_status to more accurately match what it does.
- Don't rename `ValidComponentAmalgamationIter::revoked` or
`ValidKeyAmalgamationIter::revoked`. They don't return the
revocation status; they check whether the key is revoked.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs index bc1bc9e3..c8782b76 100644 --- a/openpgp/src/packet_pile.rs +++ b/openpgp/src/packet_pile.rs @@ -58,7 +58,7 @@ use crate::parse::Cookie; /// // revocation signature /// let pp: PacketPile = PacketPile::from_bytes(&buffer)?; /// let cert = Cert::from_packet_pile(pp)?; -/// if let Revoked(_) = cert.revoked(policy, None) { +/// if let Revoked(_) = cert.revocation_status(policy, None) { /// // cert is considered revoked /// } /// # else { @@ -82,7 +82,7 @@ use crate::parse::Cookie; /// } /// /// let cert = Cert::from_packet_pile(pp)?; -/// if let CouldBe(_) = cert.revoked(policy, None) { +/// if let CouldBe(_) = cert.revocation_status(policy, None) { /// // revocation signature is broken and the key is not definitely revoked /// } /// # else { |