"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/spnego.asn1" (7 Sep 2020, 1320 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 -- Copyright (C) The Internet Society 2005.  This version of
    2 -- this module is part of RFC 4178; see the RFC itself for
    3 -- full legal notices.
    4 
    5 -- (The above copyright notice is per RFC 3978 5.6 (a), q.v.)
    6 
    7 -- This is the SPNEGO ASN.1 module from RFC 4178, tweaked
    8 -- to get the Heimdal ASN.1 compiler to accept it.
    9 
   10 SPNEGOASNOneSpec DEFINITIONS ::= BEGIN
   11 
   12 MechType ::= OBJECT IDENTIFIER
   13 
   14 MechTypeList ::= SEQUENCE OF MechType
   15 
   16 ContextFlags ::= BIT STRING {
   17     delegFlag       (0),
   18     mutualFlag      (1),
   19     replayFlag      (2),
   20     sequenceFlag    (3),
   21     anonFlag        (4),
   22     confFlag        (5),
   23     integFlag       (6)
   24 }
   25 
   26 NegTokenInit ::= SEQUENCE {
   27     mechTypes       [0] MechTypeList,
   28     reqFlags        [1] ContextFlags  OPTIONAL,
   29     mechToken       [2] OCTET STRING  OPTIONAL,
   30     mechListMIC     [3] OCTET STRING  OPTIONAL
   31 }
   32 
   33 NegTokenResp ::= SEQUENCE {
   34     negState       [0] ENUMERATED {
   35 	accept-completed    (0),
   36 	accept-incomplete   (1),
   37 	reject              (2),
   38 	request-mic         (3)
   39     }                                 OPTIONAL,
   40     supportedMech   [1] MechType      OPTIONAL,
   41     responseToken   [2] OCTET STRING  OPTIONAL,
   42     mechListMIC     [3] OCTET STRING  OPTIONAL
   43 }
   44 
   45 NegotiationToken ::= CHOICE {
   46     negTokenInit    [0] NegTokenInit,
   47     negTokenResp    [1] NegTokenResp
   48 }
   49 
   50 END