bind - Removed version tag from contrib directory and updated README.DRAGONFLY.
[dragonfly.git] / contrib / bind / lib / dns / spnego.asn1
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 -- $Id: spnego.asn1,v 1.2 2006/12/04 01:52:46 marka Exp $
8
9 -- This is the SPNEGO ASN.1 module from RFC 4178, tweaked
10 -- to get the Heimdal ASN.1 compiler to accept it.
11
12 SPNEGOASNOneSpec DEFINITIONS ::= BEGIN
13
14 MechType ::= OBJECT IDENTIFIER
15
16 MechTypeList ::= SEQUENCE OF MechType
17
18 ContextFlags ::= BIT STRING {
19     delegFlag       (0),
20     mutualFlag      (1),
21     replayFlag      (2),
22     sequenceFlag    (3),
23     anonFlag        (4),
24     confFlag        (5),
25     integFlag       (6)
26 }
27
28 NegTokenInit ::= SEQUENCE {
29     mechTypes       [0] MechTypeList,
30     reqFlags        [1] ContextFlags  OPTIONAL,
31     mechToken       [2] OCTET STRING  OPTIONAL,
32     mechListMIC     [3] OCTET STRING  OPTIONAL
33 }
34
35 NegTokenResp ::= SEQUENCE {
36     negState       [0] ENUMERATED {
37         accept-completed    (0),
38         accept-incomplete   (1),
39         reject              (2),
40         request-mic         (3)
41     }                                 OPTIONAL,
42     supportedMech   [1] MechType      OPTIONAL,
43     responseToken   [2] OCTET STRING  OPTIONAL,
44     mechListMIC     [3] OCTET STRING  OPTIONAL
45 }
46
47 NegotiationToken ::= CHOICE {
48     negTokenInit    [0] NegTokenInit,
49     negTokenResp    [1] NegTokenResp
50 }
51
52 END