Struct openssl::x509::X509Extension [−][src]
pub struct X509Extension(_);
Expand description
Permit additional fields to be added to an X509
v3 certificate.
Implementations
pub fn new(
conf: Option<&ConfRef>,
context: Option<&X509v3Context<'_>>,
name: &str,
value: &str
) -> Result<X509Extension, ErrorStack>
pub fn new(
conf: Option<&ConfRef>,
context: Option<&X509v3Context<'_>>,
name: &str,
value: &str
) -> Result<X509Extension, ErrorStack>
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>
pub fn new_nid(
conf: Option<&ConfRef>,
context: Option<&X509v3Context<'_>>,
name: Nid,
value: &str
) -> Result<X509Extension, ErrorStack>
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
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = X509ExtensionRef
type Target = X509ExtensionRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type CType = X509_EXTENSION
type CType = X509_EXTENSION
The raw C type.
type Ref = X509ExtensionRef
type Ref = X509ExtensionRef
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.
type StackType = stack_st_X509_EXTENSION
type StackType = stack_st_X509_EXTENSION
The C stack type for this element. Read more