might actually happen?
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
19
internal/outpost/radius/eap/tls/state.go
Normal file
19
internal/outpost/radius/eap/tls/state.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user