gitea

Development moved to Codeberg

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
package secctx

import "net/http"

// Store is an interface for storage of SSPI context handles.
// SSPI context handles are Windows API handles and have nothing to do
// with the "context" package in Go.
type Store interface {
	// GetHandle retrieves a *websspi.CtxtHandle value from the store
	GetHandle(r *http.Request) (interface{}, error)
	// SetHandle saves a *websspi.CtxtHandle value to the store
	SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error
}