[−][src]Struct ipsec_parser::IdentificationPayload
Identification Payloads
The Identification payloads, denoted IDi and IDr in this document, allow peers to assert an identity to one another. This identity may be used for policy lookup, but does not necessarily have to match anything in the CERT payload; both fields may be used by an implementation to perform access control decisions. When using the ID_IPV4_ADDR/ID_IPV6_ADDR identity types in IDi/IDr payloads, IKEv2 does not require this address to match the address in the IP header of IKEv2 packets, or anything in the TSi/TSr payloads. The contents of IDi/IDr are used purely to fetch the policy and authentication data related to the other party.
Defined in RFC7296 section 3.5
Fields
id_type: IdentificationType
reserved1: u8
reserved2: u16
ident_data: &'a [u8]
Trait Implementations
impl<'a> PartialEq<IdentificationPayload<'a>> for IdentificationPayload<'a>
[src]
fn eq(&self, other: &IdentificationPayload<'a>) -> bool
[src]
fn ne(&self, other: &IdentificationPayload<'a>) -> bool
[src]
impl<'a> Debug for IdentificationPayload<'a>
[src]
Auto Trait Implementations
impl<'a> Send for IdentificationPayload<'a>
impl<'a> Sync for IdentificationPayload<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,