pub struct NegTokenResp<'a> {
pub neg_state: Option<NegState>,
pub supported_mech: Option<MechType>,
pub response_token: Option<OctetStringRef<'a>>,
pub mech_list_mic: Option<OctetStringRef<'a>>,
}
Expand description
NegTokenResp
as defined in RFC 4178 Section 4.2.2.
NegTokenResp ::= SEQUENCE {
negState [0] ENUMERATED {
accept-completed (0),
accept-incomplete (1),
reject (2),
request-mic (3)
} OPTIONAL,
-- REQUIRED in the first reply from the target
supportedMech [1] MechType OPTIONAL,
-- present only in the first reply from the target
responseToken [2] OCTET STRING OPTIONAL,
mechListMIC [3] OCTET STRING OPTIONAL,
...
}
Fields§
§neg_state: Option<NegState>
This field is REQUIRED in the first reply from the target, and is OPTIONAL thereafter. When negState is absent, the actual state should be inferred from the state of the negotiated mechanism context.
supported_mech: Option<MechType>
This field SHALL only be present in the first reply from the target. It MUST be one of the mechanism(s) offered by the initiator.
response_token: Option<OctetStringRef<'a>>
This field, if present, contains tokens specific to the mechanism selected.
mech_list_mic: Option<OctetStringRef<'a>>
This field, if present, contains an MIC token for the mechanism list in the initial negotiation message. This MIC token is computed according to Section 5.
Trait Implementations§
Source§impl<'a> Clone for NegTokenResp<'a>
impl<'a> Clone for NegTokenResp<'a>
Source§fn clone(&self) -> NegTokenResp<'a>
fn clone(&self) -> NegTokenResp<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for NegTokenResp<'a>
impl<'a> Debug for NegTokenResp<'a>
Source§impl<'a> DecodeValue<'a> for NegTokenResp<'a>
impl<'a> DecodeValue<'a> for NegTokenResp<'a>
Source§impl<'a> EncodeValue for NegTokenResp<'a>
impl<'a> EncodeValue for NegTokenResp<'a>
Source§impl<'a> PartialEq for NegTokenResp<'a>
impl<'a> PartialEq for NegTokenResp<'a>
impl<'a> Eq for NegTokenResp<'a>
impl<'a> Sequence<'a> for NegTokenResp<'a>
impl<'a> StructuralPartialEq for NegTokenResp<'a>
Auto Trait Implementations§
impl<'a> Freeze for NegTokenResp<'a>
impl<'a> RefUnwindSafe for NegTokenResp<'a>
impl<'a> Send for NegTokenResp<'a>
impl<'a> Sync for NegTokenResp<'a>
impl<'a> Unpin for NegTokenResp<'a>
impl<'a> UnwindSafe for NegTokenResp<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.