pub struct NegTokenInit<'a> {
pub mech_types: Option<MechTypeList>,
pub req_flags: Option<ContextFlags>,
pub mech_token: Option<OctetStringRef<'a>>,
pub mech_list_mic: Option<OctetStringRef<'a>>,
}
rfc2478
only.Expand description
NegTokenInit
as defined in RFC 4178 Section 4.2.1.
NegTokenInit ::= SEQUENCE {
mechTypes [0] MechTypeList,
reqFlags [1] ContextFlags OPTIONAL,
-- inherited from RFC 2478 for backward compatibility,
-- RECOMMENDED to be left out
mechToken [2] OCTET STRING OPTIONAL,
mechListMIC [3] OCTET STRING OPTIONAL,
...
}
Fields§
§mech_types: Option<MechTypeList>
This field contains one or more security mechanisms available for the initiator, in decreasing preference order (favorite choice first).
req_flags: Option<ContextFlags>
This field, if present, contains the service options that are requested to establish the context (the req_flags parameter of GSS_Init_sec_context()). This field is inherited from RFC 2478 and is not integrity protected. For implementations of this specification, the initiator SHOULD omit this reqFlags field and the acceptor MUST ignore this reqFlags field.
The size constraint on the ContextFlags ASN.1 type only applies to the abstract type. The ASN.1 DER requires that all trailing zero bits be truncated from the encoding of a bit string type whose abstract definition includes named bits. Implementations should not expect to receive exactly 32 bits in an encoding of ContextFlags.
mech_token: Option<OctetStringRef<'a>>
This field, if present, contains the optimistic mechanism token.
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 NegTokenInit<'a>
impl<'a> Clone for NegTokenInit<'a>
Source§fn clone(&self) -> NegTokenInit<'a>
fn clone(&self) -> NegTokenInit<'a>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for NegTokenInit<'a>
impl<'a> Debug for NegTokenInit<'a>
Source§impl<'a> DecodeValue<'a> for NegTokenInit<'a>
impl<'a> DecodeValue<'a> for NegTokenInit<'a>
Source§impl<'a> EncodeValue for NegTokenInit<'a>
impl<'a> EncodeValue for NegTokenInit<'a>
Source§impl<'a> PartialEq for NegTokenInit<'a>
impl<'a> PartialEq for NegTokenInit<'a>
impl<'a> Eq for NegTokenInit<'a>
impl<'a> Sequence<'a> for NegTokenInit<'a>
impl<'a> StructuralPartialEq for NegTokenInit<'a>
Auto Trait Implementations§
impl<'a> Freeze for NegTokenInit<'a>
impl<'a> RefUnwindSafe for NegTokenInit<'a>
impl<'a> Send for NegTokenInit<'a>
impl<'a> Sync for NegTokenInit<'a>
impl<'a> Unpin for NegTokenInit<'a>
impl<'a> UnwindSafe for NegTokenInit<'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
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
.