Struct ipsec_parser::IdentificationType [] [src]

pub struct IdentificationType(pub u8);

Type of Identification

Methods

impl IdentificationType
[src]

ID_IPV4_ADDR: IdentificationType = IdentificationType(1)

A single four (4) octet IPv4 address.

ID_FQDN: IdentificationType = IdentificationType(2)

A fully-qualified domain name string. An example of an ID_FQDN is "example.com". The string MUST NOT contain any terminators (e.g., NULL, CR, etc.). All characters in the ID_FQDN are ASCII; for an "internationalized domain name", the syntax is as defined in [IDNA], for example "xn--tmonesimerkki-bfbb.example.net".

ID_RFC822_ADDR: IdentificationType = IdentificationType(3)

A fully-qualified RFC 822 email address string. An example of a ID_RFC822_ADDR is "jsmith@example.com". The string MUST NOT contain any terminators. Because of [EAI], implementations would be wise to treat this field as UTF-8 encoded text, not as pure ASCII.

ID_IPV6_ADDR: IdentificationType = IdentificationType(5)

A single sixteen (16) octet IPv6 address.

ID_DER_ASN1_DN: IdentificationType = IdentificationType(9)

The binary Distinguished Encoding Rules (DER) encoding of an ASN.1 X.500 Distinguished Name.

ID_DER_ASN1_GN: IdentificationType = IdentificationType(10)

The binary DER encoding of an ASN.1 X.509 GeneralName.

ID_KEY_ID: IdentificationType = IdentificationType(11)

An opaque octet stream that may be used to pass vendor-specific information necessary to do certain proprietary types of identification.

Trait Implementations

impl Clone for IdentificationType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for IdentificationType
[src]

impl Debug for IdentificationType
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for IdentificationType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for IdentificationType
[src]