pub struct BorrowedCertRevocationList<'a> {
signed_data: SignedData<'a>,
issuer: Input<'a>,
issuing_distribution_point: Option<Input<'a>>,
revoked_certs: Input<'a>,
next_update: UnixTime,
}
Expand description
Borrowed representation of a RFC 52801 profile Certificate Revocation List (CRL).
Fields§
§signed_data: SignedData<'a>
A SignedData
structure that can be passed to verify_signed_data
.
issuer: Input<'a>
Identifies the entity that has signed and issued this CRL.
issuing_distribution_point: Option<Input<'a>>
An optional CRL extension that identifies the CRL distribution point and scope for the CRL.
revoked_certs: Input<'a>
List of certificates revoked by the issuer in this CRL.
next_update: UnixTime
Implementations§
Source§impl<'a> BorrowedCertRevocationList<'a>
impl<'a> BorrowedCertRevocationList<'a>
Sourcepub fn from_der(crl_der: &'a [u8]) -> Result<Self, Error>
pub fn from_der(crl_der: &'a [u8]) -> Result<Self, Error>
Try to parse the given bytes as a RFC 52801 profile Certificate Revocation List (CRL).
Webpki does not support:
- CRL versions other than version 2.
- CRLs missing the next update field.
- CRLs missing certificate revocation list extensions.
- Delta CRLs.
- CRLs larger than (2^32)-1 bytes in size.
Sourcepub fn to_owned(&self) -> Result<OwnedCertRevocationList, Error>
pub fn to_owned(&self) -> Result<OwnedCertRevocationList, Error>
Convert the CRL to an OwnedCertRevocationList
. This may error if any of the revoked
certificates in the CRL are malformed or contain unsupported features.
fn remember_extension(&mut self, extension: &Extension<'a>) -> Result<(), Error>
fn find_serial( &self, serial: &[u8], ) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
Trait Implementations§
Source§impl<'a> Debug for BorrowedCertRevocationList<'a>
impl<'a> Debug for BorrowedCertRevocationList<'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<'a> FromDer<'a> for BorrowedCertRevocationList<'a>
impl<'a> FromDer<'a> for BorrowedCertRevocationList<'a>
Source§fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>
fn from_der(reader: &mut Reader<'a>) -> Result<Self, Error>
Try to parse the given bytes as a RFC 52801 profile Certificate Revocation List (CRL).
Webpki does not support:
- CRL versions other than version 2.
- CRLs missing the next update field.
- CRLs missing certificate revocation list extensions.
- Delta CRLs.
- CRLs larger than (2^32)-1 bytes in size.
const TYPE_ID: DerTypeId = DerTypeId::CertRevocationList
Source§impl<'a> IntoIterator for &'a BorrowedCertRevocationList<'a>
impl<'a> IntoIterator for &'a BorrowedCertRevocationList<'a>
Auto Trait Implementations§
impl<'a> Freeze for BorrowedCertRevocationList<'a>
impl<'a> RefUnwindSafe for BorrowedCertRevocationList<'a>
impl<'a> Send for BorrowedCertRevocationList<'a>
impl<'a> Sync for BorrowedCertRevocationList<'a>
impl<'a> Unpin for BorrowedCertRevocationList<'a>
impl<'a> UnwindSafe for BorrowedCertRevocationList<'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