Struct openssl::x509::extension::ExtendedKeyUsage
source · pub struct ExtendedKeyUsage { /* private fields */ }
Expand description
An extension consisting of a list of usages indicating purposes for which the certificate public key can be used for.
Implementations§
source§impl ExtendedKeyUsage
impl ExtendedKeyUsage
sourcepub fn new() -> ExtendedKeyUsage
pub fn new() -> ExtendedKeyUsage
Construct a new ExtendedKeyUsage
extension.
sourcepub fn critical(&mut self) -> &mut ExtendedKeyUsage
pub fn critical(&mut self) -> &mut ExtendedKeyUsage
Sets the critical
flag to true
. The extension will be critical.
sourcepub fn server_auth(&mut self) -> &mut ExtendedKeyUsage
pub fn server_auth(&mut self) -> &mut ExtendedKeyUsage
Sets the serverAuth
flag to true
.
sourcepub fn client_auth(&mut self) -> &mut ExtendedKeyUsage
pub fn client_auth(&mut self) -> &mut ExtendedKeyUsage
Sets the clientAuth
flag to true
.
sourcepub fn code_signing(&mut self) -> &mut ExtendedKeyUsage
pub fn code_signing(&mut self) -> &mut ExtendedKeyUsage
Sets the codeSigning
flag to true
.
sourcepub fn email_protection(&mut self) -> &mut ExtendedKeyUsage
pub fn email_protection(&mut self) -> &mut ExtendedKeyUsage
Sets the emailProtection
flag to true
.
sourcepub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage
pub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage
Sets the timeStamping
flag to true
.
sourcepub fn ms_code_ind(&mut self) -> &mut ExtendedKeyUsage
pub fn ms_code_ind(&mut self) -> &mut ExtendedKeyUsage
Sets the msCodeInd
flag to true
.
sourcepub fn ms_code_com(&mut self) -> &mut ExtendedKeyUsage
pub fn ms_code_com(&mut self) -> &mut ExtendedKeyUsage
Sets the msCodeCom
flag to true
.
sourcepub fn ms_ctl_sign(&mut self) -> &mut ExtendedKeyUsage
pub fn ms_ctl_sign(&mut self) -> &mut ExtendedKeyUsage
Sets the msCTLSign
flag to true
.
sourcepub fn ms_sgc(&mut self) -> &mut ExtendedKeyUsage
pub fn ms_sgc(&mut self) -> &mut ExtendedKeyUsage
Sets the msSGC
flag to true
.
sourcepub fn ms_efs(&mut self) -> &mut ExtendedKeyUsage
pub fn ms_efs(&mut self) -> &mut ExtendedKeyUsage
Sets the msEFS
flag to true
.
sourcepub fn ns_sgc(&mut self) -> &mut ExtendedKeyUsage
pub fn ns_sgc(&mut self) -> &mut ExtendedKeyUsage
Sets the nsSGC
flag to true
.
sourcepub fn other(&mut self, other: &str) -> &mut ExtendedKeyUsage
pub fn other(&mut self, other: &str) -> &mut ExtendedKeyUsage
Sets a flag not already defined.
sourcepub fn build(&self) -> Result<X509Extension, ErrorStack>
pub fn build(&self) -> Result<X509Extension, ErrorStack>
Return the ExtendedKeyUsage
extension as an X509Extension
.
Trait Implementations§
source§impl Default for ExtendedKeyUsage
impl Default for ExtendedKeyUsage
source§fn default() -> ExtendedKeyUsage
fn default() -> ExtendedKeyUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedKeyUsage
impl Send for ExtendedKeyUsage
impl Sync for ExtendedKeyUsage
impl Unpin for ExtendedKeyUsage
impl UnwindSafe for ExtendedKeyUsage
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