Struct openssl::x509::extension::ExtendedKeyUsage [−][src]
An extension consisting of a list of usages indicating purposes for which the certificate public key can be used for.
Implementations
impl ExtendedKeyUsage
[src]
pub fn new() -> ExtendedKeyUsage
[src]
Construct a new ExtendedKeyUsage
extension.
pub fn critical(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the critical
flag to true
. The extension will be critical.
pub fn server_auth(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the serverAuth
flag to true
.
pub fn client_auth(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the clientAuth
flag to true
.
pub fn code_signing(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the codeSigning
flag to true
.
pub fn email_protection(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the emailProtection
flag to true
.
pub fn time_stamping(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the timeStamping
flag to true
.
pub fn ms_code_ind(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the msCodeInd
flag to true
.
pub fn ms_code_com(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the msCodeCom
flag to true
.
pub fn ms_ctl_sign(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the msCTLSign
flag to true
.
pub fn ms_sgc(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the msSGC
flag to true
.
pub fn ms_efs(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the msEFS
flag to true
.
pub fn ns_sgc(&mut self) -> &mut ExtendedKeyUsage
[src]
Sets the nsSGC
flag to true
.
pub fn other(&mut self, other: &str) -> &mut ExtendedKeyUsage
[src]
Sets a flag not already defined.
pub fn build(&self) -> Result<X509Extension, ErrorStack>
[src]
Return the ExtendedKeyUsage
extension as an X509Extension
.
Trait Implementations
impl Default for ExtendedKeyUsage
[src]
fn default() -> ExtendedKeyUsage
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,