pub struct CertificateRevocationList { /* private fields */ }
Expand description
Represents a X509 certificate revocation list.
Implementations§
Source§impl CertificateRevocationList
impl CertificateRevocationList
Sourcepub fn from_pem(pem: &[u8]) -> Result<CertificateRevocationList>
pub fn from_pem(pem: &[u8]) -> Result<CertificateRevocationList>
Sourcepub fn from_pem_bundle(
pem_bundle: &[u8],
) -> Result<Vec<CertificateRevocationList>>
pub fn from_pem_bundle( pem_bundle: &[u8], ) -> Result<Vec<CertificateRevocationList>>
Creates a collection of CertificateRevocationList
s from a PEM encoded CRL bundle.
Example byte sources may be .crl
or .pem
files.
§Examples
let mut buf = Vec::new();
File::open("crl-bundle.crl")?
.read_to_end(&mut buf)?;
let crls = reqwest::tls::CertificateRevocationList::from_pem_bundle(&buf)?;
§Optional
This requires the rustls-tls(-...)
Cargo feature enabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CertificateRevocationList
impl RefUnwindSafe for CertificateRevocationList
impl Send for CertificateRevocationList
impl Sync for CertificateRevocationList
impl Unpin for CertificateRevocationList
impl UnwindSafe for CertificateRevocationList
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