Files
authentik/internal/outpost/radius/eap/tls/state.go
Jens Langhammer 3c228bf5c3 try to make the finish work
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2025-07-01 22:42:55 +02:00

28 lines
456 B
Go

package tls
import (
"context"
"crypto/tls"
)
type State struct {
HasStarted bool
RemainingChunks [][]byte
HandshakeDone bool
ClientHello *tls.ClientHelloInfo
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
}