eap

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TypeEAP protocol.Type = 0

Variables

This section is empty.

Functions

func EmptyPayload

func EmptyPayload(settings protocol.Settings, t protocol.Type) (protocol.Payload, protocol.Type, error)

EmptyPayload resolves an offered EAP Type to a fresh method payload (EAP type negotiation, RFC 3748 Section 5). It returns the constructor whose Type matches, or — for a tunneling method that wraps an inner payload (e.g. PEAP, a tls.Payload whose HasInner is the PEAP payload) — the outer payload together with the inner Type code that must appear on the wire. It errors on an unsupported type.

func Protocol

func Protocol() protocol.Payload

Types

type Payload

type Payload struct {
	Code       protocol.Code
	ID         uint8
	Length     uint16
	MsgType    protocol.Type
	Payload    protocol.Payload
	RawPayload []byte

	Settings protocol.Settings
}

func (*Payload) Decode

func (p *Payload) Decode(raw []byte) error

func (*Payload) Encode

func (p *Payload) Encode() ([]byte, error)

func (*Payload) Handle

func (p *Payload) Handle(ctx protocol.Context) protocol.Payload

func (*Payload) Offerable

func (p *Payload) Offerable() bool

func (*Payload) String

func (p *Payload) String() string

func (*Payload) Type

func (p *Payload) Type() protocol.Type

type State

type State struct {
	PacketID uint8
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL