Struct openssl::x509::X509Extension [−][src]
Permit additional fields to be added to an X509
v3 certificate.
Implementations
impl X509Extension
[src][−]
pub fn new(
conf: Option<&ConfRef>,
context: Option<&X509v3Context<'_>>,
name: &str,
value: &str
) -> Result<X509Extension, ErrorStack>
[src][−]
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>
[src][−]
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
impl AsRef<X509ExtensionRef> for X509Extension
[src][+]
impl Borrow<X509ExtensionRef> for X509Extension
[src][+]
impl Deref for X509Extension
[src][+]
impl DerefMut for X509Extension
[src][+]
impl Drop for X509Extension
[src][+]
impl ForeignType for X509Extension
[src][+]
impl Send for X509Extension
[src]
impl Stackable for X509Extension
[src]
type StackType = stack_st_X509_EXTENSION
The C stack type for this element. Read more
impl Sync for X509Extension
[src]
Auto Trait Implementations
impl RefUnwindSafe for X509Extension
[src]
impl Unpin for X509Extension
[src]
impl UnwindSafe for X509Extension
[src]
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,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,