pub struct X509Crl { /* private fields */ }Expand description
An X.509 certificate revocation list (X509_CRL*).
Cloneable via X509_CRL_up_ref.
Implementations§
Source§impl X509Crl
impl X509Crl
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Allocate a new, empty X509_CRL structure.
The returned CRL has no fields set. Use this when constructing a CRL programmatically before populating its fields via the OpenSSL API.
§Errors
Returns Err if OpenSSL cannot allocate the structure.
Sourcepub fn new_in(ctx: &Arc<LibCtx>) -> Result<Self, ErrorStack>
pub fn new_in(ctx: &Arc<LibCtx>) -> Result<Self, ErrorStack>
Allocate a new, empty X509_CRL structure bound to a library context.
Equivalent to X509_CRL_new_ex(ctx, NULL). The CRL will use providers
from ctx for any cryptographic operations performed on it.
§Errors
Returns Err if OpenSSL cannot allocate the structure.
Sourcepub fn issuer_name(&self) -> X509Name<'_>
pub fn issuer_name(&self) -> X509Name<'_>
Issuer distinguished name (borrowed).
Sourcepub fn last_update_str(&self) -> Option<String>
pub fn last_update_str(&self) -> Option<String>
thisUpdate field as a human-readable string.
Sourcepub fn next_update_str(&self) -> Option<String>
pub fn next_update_str(&self) -> Option<String>
nextUpdate field as a human-readable string.
Trait Implementations§
impl Send for X509Crl
impl Sync for X509Crl
Auto Trait Implementations§
impl Freeze for X509Crl
impl RefUnwindSafe for X509Crl
impl Unpin for X509Crl
impl UnwindSafe for X509Crl
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