[]Struct openssl::x509::X509Extension

pub struct X509Extension(_);

Permit additional fields to be added to an X509 v3 certificate.

Methods

impl X509Extension[src]

pub fn new(
    conf: Option<&ConfRef>,
    context: Option<&X509v3Context>,
    name: &str,
    value: &str
) -> Result<X509Extension, ErrorStack>
[src]

Constructs an X509 extension value. See man x509v3_config for information on supported names and their value formats.

Some extension types, such as subjectAlternativeName, require an X509v3Context to be provided.

See the extension module for builder types which will construct certain common extensions.

pub fn new_nid(
    conf: Option<&ConfRef>,
    context: Option<&X509v3Context>,
    name: Nid,
    value: &str
) -> Result<X509Extension, ErrorStack>
[src]

Constructs an X509 extension value. See man x509v3_config for information on supported extensions and their value formats.

Some extension types, such as nid::SUBJECT_ALTERNATIVE_NAME, require an X509v3Context to be provided.

See the extension module for builder types which will construct certain common extensions.

Trait Implementations

impl Stackable for X509Extension[src]

type StackType = stack_st_X509_EXTENSION

The C stack type for this element. Read more

impl Send for X509Extension[src]

impl Drop for X509Extension

impl Sync for X509Extension[src]

impl AsRef<X509ExtensionRef> for X509Extension

impl DerefMut for X509Extension

impl Deref for X509Extension

type Target = X509ExtensionRef

The resulting type after dereferencing.

impl Borrow<X509ExtensionRef> for X509Extension

impl ForeignType for X509Extension

type CType = X509_EXTENSION

The raw C type.

type Ref = X509ExtensionRef

The type representing a reference to this type.

Auto Trait Implementations

impl Unpin for X509Extension

impl UnwindSafe for X509Extension

impl RefUnwindSafe for X509Extension

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]