proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Header = []byte{
	0x53, 0x54, 0x46, 0x01,
	0x00, 0x00,
	0x00,
	0x00,
}

Functions

This section is empty.

Types

type DTD

type DTD struct {
	XMLName              xml.Name       `xml:"config-auth"`
	Client               string         `xml:"client,attr"`                 // usually "vpn"
	Type                 string         `xml:"type,attr"`                   // request type: init, logout, auth-reply
	AggregateAuthVersion string         `xml:"aggregate-auth-version,attr"` // usually 2
	Version              string         `xml:"version"`                     // client version
	GroupAccess          string         `xml:"group-access"`                // requested address
	GroupSelect          string         `xml:"group-select"`                // selected group name
	ClientCertRequest    *struct{}      `xml:"client-cert-request"`
	SessionToken         string         `xml:"session-token"`
	Error                authError      `xml:"error"`
	Auth                 auth           `xml:"auth"`
	DeviceId             deviceId       `xml:"device-id"`
	Opaque               opaque         `xml:"opaque"`
	Capabilities         capabilities   `xml:"capabilities"`
	MacAddressList       macAddressList `xml:"mac-address-list"`
	Config               config         `xml:"config"`
}

DTD defines the XML request and response structures used by the client and server. https://datatracker.ietf.org/doc/html/draft-mavrogiannopoulos-openconnect-03#appendix-C.1

type Payload

type Payload struct {
	Type byte // The available payload types
	Data []byte
}

Payload is the packet buffer structure.

Jump to

Keyboard shortcuts

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