Struct openssl::x509::extension::BasicConstraints [−][src]
pub struct BasicConstraints { /* fields omitted */ }An extension which indicates whether a certificate is a CA certificate.
Methods
impl BasicConstraints[src]
impl BasicConstraintspub fn new() -> BasicConstraints[src]
pub fn new() -> BasicConstraintsConstruct a new BasicConstraints extension.
pub fn critical(&mut self) -> &mut BasicConstraints[src]
pub fn critical(&mut self) -> &mut BasicConstraintsSets the critical flag to true. The extension will be critical.
pub fn ca(&mut self) -> &mut BasicConstraints[src]
pub fn ca(&mut self) -> &mut BasicConstraintsSets the ca flag to true.
pub fn pathlen(&mut self, pathlen: u32) -> &mut BasicConstraints[src]
pub fn pathlen(&mut self, pathlen: u32) -> &mut BasicConstraintsSets the pathlen to an optional non-negative value. The pathlen is the maximum number of CAs that can appear below this one in a chain.
pub fn build(&self) -> Result<X509Extension, ErrorStack>[src]
pub fn build(&self) -> Result<X509Extension, ErrorStack>Return the BasicConstraints extension as an X509Extension.
Auto Trait Implementations
impl Send for BasicConstraints
impl Send for BasicConstraintsimpl Sync for BasicConstraints
impl Sync for BasicConstraints