more mschap v2, start peap extension type 33

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-24 01:25:09 +02:00
parent e0c837257c
commit fad18db70b
8 changed files with 275 additions and 5 deletions

View File

@ -0,0 +1,37 @@
package peap
import (
"errors"
"goauthentik.io/internal/outpost/radius/eap/protocol"
)
const TypePEAPExtension protocol.Type = 33
type ExtensionPayload struct {
AVPs []ExtensionAVP
}
func (ep *ExtensionPayload) Decode(raw []byte) error {
return errors.New("PEAP: Extension Payload does not support decoding")
}
func (ep *ExtensionPayload) Encode() ([]byte, error) {
return []byte{}, nil
}
func (ep *ExtensionPayload) Handle(protocol.Context) protocol.Payload {
return nil
}
func (ep *ExtensionPayload) Offerable() bool {
return false
}
func (ep *ExtensionPayload) String() string {
return "<PEAP Extension Payload>"
}
func (ep *ExtensionPayload) Type() protocol.Type {
return TypePEAPExtension
}