Enum webpki::CertRevocationList
source · pub enum CertRevocationList<'a> {
Owned(OwnedCertRevocationList),
Borrowed(BorrowedCertRevocationList<'a>),
}
Expand description
A RFC 52801 profile Certificate Revocation List (CRL).
May be either an owned, or a borrowed representation.
Variants§
Owned(OwnedCertRevocationList)
Available on crate feature
alloc
only.An owned representation of a CRL.
Borrowed(BorrowedCertRevocationList<'a>)
A borrowed representation of a CRL.
Implementations§
source§impl<'a> CertRevocationList<'a>
impl<'a> CertRevocationList<'a>
sourcepub fn issuing_distribution_point(&self) -> Option<&[u8]>
pub fn issuing_distribution_point(&self) -> Option<&[u8]>
Return the DER encoded issuing distribution point of the CRL, if any.
sourcepub fn find_serial(
&self,
serial: &[u8],
) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
pub fn find_serial( &self, serial: &[u8], ) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
Try to find a revoked certificate in the CRL by DER encoded serial number. This may yield an error if the CRL has malformed revoked certificates.
Trait Implementations§
source§impl<'a> Debug for CertRevocationList<'a>
impl<'a> Debug for CertRevocationList<'a>
source§impl<'a> From<BorrowedCertRevocationList<'a>> for CertRevocationList<'a>
impl<'a> From<BorrowedCertRevocationList<'a>> for CertRevocationList<'a>
source§fn from(crl: BorrowedCertRevocationList<'a>) -> Self
fn from(crl: BorrowedCertRevocationList<'a>) -> Self
Converts to this type from the input type.
source§impl From<OwnedCertRevocationList> for CertRevocationList<'_>
Available on crate feature alloc
only.
impl From<OwnedCertRevocationList> for CertRevocationList<'_>
Available on crate feature
alloc
only.source§fn from(crl: OwnedCertRevocationList) -> Self
fn from(crl: OwnedCertRevocationList) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CertRevocationList<'a>
impl<'a> RefUnwindSafe for CertRevocationList<'a>
impl<'a> Send for CertRevocationList<'a>
impl<'a> Sync for CertRevocationList<'a>
impl<'a> Unpin for CertRevocationList<'a>
impl<'a> UnwindSafe for CertRevocationList<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more