Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [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 | type ContextFlags asn1.BitString |
| 18 | |
| 19 | // NewContextFlags creates a new ContextFlags instance. |
| 20 | func NewContextFlags() ContextFlags { |
| 21 | var c ContextFlags |
| 22 | c.BitLength = 32 |
| 23 | c.Bytes = make([]byte, 4) |
| 24 | return c |
| 25 | } |