folder structure to prepare eap in eap
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
21
internal/outpost/radius/eap/protocol/tls/inner.go
Normal file
21
internal/outpost/radius/eap/protocol/tls/inner.go
Normal file
@ -0,0 +1,21 @@
|
||||
package tls
|
||||
|
||||
import (
|
||||
"goauthentik.io/internal/outpost/radius/eap/protocol"
|
||||
)
|
||||
|
||||
func (p *Payload) innerHandler(ctx protocol.Context) *Payload {
|
||||
// p.st.TLS.read
|
||||
// d, _ := io.ReadAll(p.st.TLS)
|
||||
err := p.Inner.Decode([]byte{})
|
||||
if err != nil {
|
||||
ctx.Log().WithError(err).Warning("TLS: failed to decode inner protocol")
|
||||
ctx.EndInnerProtocol(protocol.StatusError, nil)
|
||||
return nil
|
||||
}
|
||||
pl := p.Inner.Handle(ctx)
|
||||
enc, err := pl.Encode()
|
||||
return &Payload{
|
||||
Data: enc,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user