pub struct IdentificationPayload<'a> {
pub id_type: IdentificationType,
pub reserved1: u8,
pub reserved2: u16,
pub ident_data: &'a [u8],
}
Expand description
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§
Source§impl<'a> Debug for IdentificationPayload<'a>
impl<'a> Debug for IdentificationPayload<'a>
Source§impl<'a> PartialEq for IdentificationPayload<'a>
impl<'a> PartialEq for IdentificationPayload<'a>
impl<'a> StructuralPartialEq for IdentificationPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdentificationPayload<'a>
impl<'a> RefUnwindSafe for IdentificationPayload<'a>
impl<'a> Send for IdentificationPayload<'a>
impl<'a> Sync for IdentificationPayload<'a>
impl<'a> Unpin for IdentificationPayload<'a>
impl<'a> UnwindSafe for IdentificationPayload<'a>
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