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.
Types ¶
Click to show internal directories.
Click to hide internal directories.