Exemple #1
0
class NegTokenResp(univ.Sequence):
    componentType = namedtype.NamedTypes(
        _sequence_optional_component('negResult', 0, NegResult()),
        _sequence_optional_component('supportedMech', 1, MechType()),
        _sequence_optional_component('responseToken', 2, univ.OctetString()),
        _sequence_optional_component('mechListMIC', 3, univ.OctetString())
    )
Exemple #2
0
class NegTokenInit(univ.Sequence):
    componentType = namedtype.NamedTypes(
        _sequence_component('mechTypes', 0, MechTypeList()),
        _sequence_optional_component('reqFlags', 1, ContextFlags()),
        _sequence_optional_component('mechToken', 2, univ.OctetString()),
        _sequence_optional_component('mechListMIC', 3, univ.OctetString())
    )
Exemple #3
0
class NegTokenInit2(univ.Sequence):
    """
    negTokenInit2 is a Microsoft extension of negTokenInit, initiating SPNEGO from the server
    See [MS-SPNG] for details. The negHints field should always contain the hintname
    "not_defined_in_RFC4178@please_ignore"
    """
    componentType = namedtype.NamedTypes(
        _sequence_component('mechTypes', 0, MechTypeList()),
        _sequence_optional_component('reqFlags', 1, ContextFlags()),
        _sequence_optional_component('mechToken', 2, univ.OctetString()),
        _sequence_optional_component('negHints', 3, NegHints()),
        _sequence_optional_component('mechListMIC', 4, univ.OctetString()))
Exemple #4
0
class NegHints(univ.Sequence):
    componentType = namedtype.NamedTypes(
        _sequence_optional_component('hintName', 0, char.GeneralString()),
        _sequence_optional_component('hintAddress', 1, univ.OctetString()))