[−]Struct openssl::x509::X509Extension
Permit additional fields to be added to an X509
v3 certificate.
Methods
impl X509Extension
[src]
impl X509Extension
pub fn new(
conf: Option<&ConfRef>,
context: Option<&X509v3Context>,
name: &str,
value: &str
) -> Result<X509Extension, ErrorStack>
[src]
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>
[src]
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
impl Stackable for X509Extension
[src]
impl Stackable for X509Extension
type StackType = stack_st_X509_EXTENSION
The C stack type for this element. Read more
impl Sync for X509Extension
[src]
impl Sync for X509Extension
impl AsRef<X509ExtensionRef> for X509Extension
impl AsRef<X509ExtensionRef> for X509Extension
fn as_ref(&self) -> &X509ExtensionRef
fn as_ref(&self) -> &X509ExtensionRef
Performs the conversion.
impl Send for X509Extension
[src]
impl Send for X509Extension
impl Drop for X509Extension
impl Drop for X509Extension
impl Deref for X509Extension
impl Deref for X509Extension
type Target = X509ExtensionRef
The resulting type after dereferencing.
fn deref(&self) -> &X509ExtensionRef
fn deref(&self) -> &X509ExtensionRef
Dereferences the value.
impl DerefMut for X509Extension
impl DerefMut for X509Extension
fn deref_mut(&mut self) -> &mut X509ExtensionRef
fn deref_mut(&mut self) -> &mut X509ExtensionRef
Mutably dereferences the value.
impl Borrow<X509ExtensionRef> for X509Extension
impl Borrow<X509ExtensionRef> for X509Extension
fn borrow(&self) -> &X509ExtensionRef
fn borrow(&self) -> &X509ExtensionRef
Immutably borrows from an owned value. Read more
impl ForeignType 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.
unsafe fn from_ptr(ptr: *mut X509_EXTENSION) -> X509Extension
unsafe fn from_ptr(ptr: *mut X509_EXTENSION) -> X509Extension
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut X509_EXTENSION
fn as_ptr(&self) -> *mut X509_EXTENSION
Returns a raw pointer to the wrapped value.
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more