contextFlags.go 591 B

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