blob: 6634c6d78268b65412caf10972e8a36d150e9565 [file] [log] [blame]
kesavand2cde6582020-06-22 04:56:23 -04001package gssapi
2
3import "github.com/jcmturner/gofork/encoding/asn1"
4
5// GSS-API context flags assigned numbers.
6const (
7 ContextFlagDeleg = 1
8 ContextFlagMutual = 2
9 ContextFlagReplay = 4
10 ContextFlagSequence = 8
11 ContextFlagConf = 16
12 ContextFlagInteg = 32
13 ContextFlagAnon = 64
14)
15
16// ContextFlags flags for GSSAPI
17type ContextFlags asn1.BitString
18
19// NewContextFlags creates a new ContextFlags instance.
20func NewContextFlags() ContextFlags {
21 var c ContextFlags
22 c.BitLength = 32
23 c.Bytes = make([]byte, 4)
24 return c
25}