Files
authentik/internal/outpost/radius/eap/tls/state.go
Jens Langhammer 8a80f07db2 this might actually be cooking
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2025-07-01 22:42:55 +02:00

27 lines
417 B
Go

package tls
import (
"context"
"crypto/tls"
)
type State struct {
HasStarted bool
RemainingChunks [][]byte
HandshakeDone bool
TotalPayloadSize int
TLS *tls.Conn
Conn *TLSConnection
Context context.Context
}
func NewState() *State {
return &State{
RemainingChunks: make([][]byte, 0),
}
}
func (s State) HasMore() bool {
return len(s.RemainingChunks) > 0
}