blob: 8c91859b89ff2a8afdb97867854def2e01dbc76c [file] [log] [blame]
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00001package 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
17// DEPRECATED - do not use
18type ContextFlags asn1.BitString
19
20// NewContextFlags creates a new ContextFlags instance
21// DEPRECATED - do not use
22func NewContextFlags() ContextFlags {
23 var c ContextFlags
24 c.BitLength = 32
25 c.Bytes = make([]byte, 4)
26 return c
27}