khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 1 | package gssapi |
| 2 | |
| 3 | import "github.com/jcmturner/gofork/encoding/asn1" |
| 4 | |
| 5 | // GSS-API context flags assigned numbers. |
| 6 | const ( |
| 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 |
| 18 | type ContextFlags asn1.BitString |
| 19 | |
| 20 | // NewContextFlags creates a new ContextFlags instance |
| 21 | // DEPRECATED - do not use |
| 22 | func NewContextFlags() ContextFlags { |
| 23 | var c ContextFlags |
| 24 | c.BitLength = 32 |
| 25 | c.Bytes = make([]byte, 4) |
| 26 | return c |
| 27 | } |