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 BasicConstraints
pub fn new() -> BasicConstraints
[src]
pub fn new() -> BasicConstraints
Construct a new BasicConstraints
extension.
pub fn critical(&mut self) -> &mut BasicConstraints
[src]
pub fn critical(&mut self) -> &mut BasicConstraints
Sets the critical
flag to true
. The extension will be critical.
pub fn ca(&mut self) -> &mut BasicConstraints
[src]
pub fn ca(&mut self) -> &mut BasicConstraints
Sets the ca
flag to true
.
pub fn pathlen(&mut self, pathlen: u32) -> &mut BasicConstraints
[src]
pub fn pathlen(&mut self, pathlen: u32) -> &mut BasicConstraints
Sets 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 BasicConstraints
impl Sync for BasicConstraints
impl Sync for BasicConstraints