might actually happen?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-14 02:00:20 +02:00
parent 767c0a8e45
commit 2bba0ddd74
15 changed files with 491 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package tls
import "crypto/tls"
type State struct {
HasStarted bool
RemainingChunks [][]byte
TLS *tls.Conn
}
func NewState() State {
return State{
RemainingChunks: make([][]byte, 0),
}
}
func (s State) HasMore() bool {
return len(s.RemainingChunks) > 0
}