pub struct X509Name(_);
Expand description
The names of an X509
certificate.
Implementations
sourceimpl X509Name
impl X509Name
sourcepub fn builder() -> Result<X509NameBuilder, ErrorStack>
pub fn builder() -> Result<X509NameBuilder, ErrorStack>
Returns a new builder.
sourcepub fn load_client_ca_file<P: AsRef<Path>>(
file: P
) -> Result<Stack<X509Name>, ErrorStack>
pub fn load_client_ca_file<P: AsRef<Path>>(
file: P
) -> Result<Stack<X509Name>, ErrorStack>
Loads subject names from a file containing PEM-formatted certificates.
This is commonly used in conjunction with SslContextBuilder::set_client_ca_list
.
Methods from Deref<Target = X509NameRef>
sourcepub fn entries_by_nid(&self, nid: Nid) -> X509NameEntries<'_>ⓘNotable traits for X509NameEntries<'a>impl<'a> Iterator for X509NameEntries<'a> type Item = &'a X509NameEntryRef;
pub fn entries_by_nid(&self, nid: Nid) -> X509NameEntries<'_>ⓘNotable traits for X509NameEntries<'a>impl<'a> Iterator for X509NameEntries<'a> type Item = &'a X509NameEntryRef;
Returns the name entries by the nid.
sourcepub fn entries(&self) -> X509NameEntries<'_>ⓘNotable traits for X509NameEntries<'a>impl<'a> Iterator for X509NameEntries<'a> type Item = &'a X509NameEntryRef;
pub fn entries(&self) -> X509NameEntries<'_>ⓘNotable traits for X509NameEntries<'a>impl<'a> Iterator for X509NameEntries<'a> type Item = &'a X509NameEntryRef;
Returns an iterator over all X509NameEntry
values
Trait Implementations
sourceimpl AsRef<X509NameRef> for X509Name
impl AsRef<X509NameRef> for X509Name
sourcefn as_ref(&self) -> &X509NameRef
fn as_ref(&self) -> &X509NameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<X509NameRef> for X509Name
impl Borrow<X509NameRef> for X509Name
sourcefn borrow(&self) -> &X509NameRef
fn borrow(&self) -> &X509NameRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for X509Name
impl Deref for X509Name
type Target = X509NameRef
type Target = X509NameRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &X509NameRef
fn deref(&self) -> &X509NameRef
Dereferences the value.
sourceimpl DerefMut for X509Name
impl DerefMut for X509Name
sourcefn deref_mut(&mut self) -> &mut X509NameRef
fn deref_mut(&mut self) -> &mut X509NameRef
Mutably dereferences the value.
sourceimpl ForeignType for X509Name
impl ForeignType for X509Name
sourceimpl Stackable for X509Name
impl Stackable for X509Name
type StackType = stack_st_X509_NAME
type StackType = stack_st_X509_NAME
The C stack type for this element. Read more
impl Send for X509Name
impl Sync for X509Name
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more