pub enum GeneralName {
Dns(String),
Email(String),
Uri(String),
IpAddress(Vec<u8>),
RegisteredId(Oid),
OtherName {
type_id: Oid,
value: Vec<u8>,
},
}Expand description
A decoded entry from an X.509 Subject Alternative Name (subjectAltName)
extension.
Returned by X509::subject_alt_names. Variants correspond to the
GeneralName choice types defined in RFC 5280 § 4.2.1.6.
Variants§
Dns(String)
dNSName — a DNS hostname (e.g. "example.com").
Email(String)
rfc822Name — an email address.
Uri(String)
uniformResourceIdentifier — a URI.
IpAddress(Vec<u8>)
iPAddress — 4 bytes for IPv4, 16 bytes for IPv6.
RegisteredId(Oid)
registeredID — an OID (used in PKIX for specific identifier types).
OtherName
otherName — application-specific name with a type OID and DER-encoded value.
value contains the DER encoding of the ASN1_TYPE value as returned
by OpenSSL. Callers that need to decode the value must parse it
according to the schema identified by type_id.
Trait Implementations§
Source§impl Clone for GeneralName
impl Clone for GeneralName
Source§fn clone(&self) -> GeneralName
fn clone(&self) -> GeneralName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneralName
impl Debug for GeneralName
Source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
impl Eq for GeneralName
impl StructuralPartialEq for GeneralName
Auto Trait Implementations§
impl Freeze for GeneralName
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin for GeneralName
impl UnsafeUnpin for GeneralName
impl UnwindSafe for GeneralName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more