pub struct X509CrlBuilder(/* private fields */);Expand description
A builder used to construct a version 2 X509Crl.
Implementations§
Source§impl X509CrlBuilder
impl X509CrlBuilder
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Creates a new builder.
This corresponds to X509_CRL_new.
Sourcepub fn set_issuer_name(
&mut self,
issuer_name: &X509NameRef,
) -> Result<(), ErrorStack>
pub fn set_issuer_name( &mut self, issuer_name: &X509NameRef, ) -> Result<(), ErrorStack>
Set the issuer name of the CRL.
This corresponds to X509_CRL_set_issuer_name.
Sourcepub fn set_last_update(&mut self, t: &Asn1TimeRef) -> Result<(), ErrorStack>
pub fn set_last_update(&mut self, t: &Asn1TimeRef) -> Result<(), ErrorStack>
Set the lastUpdate (thisUpdate) time indicating when the CRL was issued.
This corresponds to X509_CRL_set1_lastUpdate.
Sourcepub fn set_next_update(&mut self, t: &Asn1TimeRef) -> Result<(), ErrorStack>
pub fn set_next_update(&mut self, t: &Asn1TimeRef) -> Result<(), ErrorStack>
Set the nextUpdate timestamp indicating when a newer CRL is expected.
This corresponds to X509_CRL_set1_nextUpdate.
Sourcepub fn append_extension(
&mut self,
extension: X509Extension,
) -> Result<(), ErrorStack>
pub fn append_extension( &mut self, extension: X509Extension, ) -> Result<(), ErrorStack>
Add an X509 extension value to the CRL.
This works just as append_extension except it takes ownership of the X509Extension.
Sourcepub fn append_extension2(
&mut self,
extension: &X509ExtensionRef,
) -> Result<(), ErrorStack>
pub fn append_extension2( &mut self, extension: &X509ExtensionRef, ) -> Result<(), ErrorStack>
Add an X509 extension value to the CRL.
This corresponds to X509_CRL_add_ext.
Sourcepub fn add_revoked(&mut self, revoked: X509Revoked) -> Result<(), ErrorStack>
pub fn add_revoked(&mut self, revoked: X509Revoked) -> Result<(), ErrorStack>
Add a revoked certificate to the CRL.
This corresponds to X509_CRL_add0_revoked.
Sourcepub fn sort(&mut self) -> Result<(), ErrorStack>
pub fn sort(&mut self) -> Result<(), ErrorStack>
Sort the CRL.
This corresponds to X509_CRL_sort.
Sourcepub fn sign<T>(
&mut self,
key: &PKeyRef<T>,
hash: MessageDigest,
) -> Result<(), ErrorStack>where
T: HasPrivate,
pub fn sign<T>(
&mut self,
key: &PKeyRef<T>,
hash: MessageDigest,
) -> Result<(), ErrorStack>where
T: HasPrivate,
Signs the CRL with a private key.
This corresponds to X509_CRL_sign.