GNU Linux-libre 6.8.7-gnu
[releases.git] / fs / smb / server / ksmbd_spnego_negtokeninit.asn1
1 -- SPDX-License-Identifier: BSD-3-Clause
2 --
3 -- Copyright (C) 1998, 2000 IETF Trust and the persons identified as authors
4 -- of the code
5 --
6 -- https://www.rfc-editor.org/rfc/rfc2478#section-3.2.1
7 -- https://www.rfc-editor.org/rfc/rfc2743#section-3.1
8
9 GSSAPI ::=
10         [APPLICATION 0] IMPLICIT SEQUENCE {
11                 thisMech
12                         OBJECT IDENTIFIER ({ksmbd_gssapi_this_mech}),
13                 negotiationToken
14                         NegotiationToken
15         }
16
17 MechType ::= OBJECT IDENTIFIER ({ksmbd_neg_token_init_mech_type})
18
19 MechTypeList ::= SEQUENCE OF MechType
20
21 NegTokenInit ::=
22         SEQUENCE {
23                 mechTypes
24                         [0] MechTypeList,
25                 reqFlags
26                         [1] BIT STRING OPTIONAL,
27                 mechToken
28                         [2] OCTET STRING OPTIONAL ({ksmbd_neg_token_init_mech_token}),
29                 mechListMIC
30                         [3] OCTET STRING OPTIONAL
31         }
32
33 NegotiationToken ::=
34         CHOICE {
35                 negTokenInit
36                         [0] NegTokenInit,
37                 negTokenTarg
38                         [1] ANY
39         }