protocol

package
v0.2.1 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

View Source
const (
	PayloadData       byte = 0x00
	PayloadDPDReq     byte = 0x03
	PayloadDPDResp    byte = 0x04
	PayloadDisconnect byte = 0x05
	PayloadKeepalive  byte = 0x07
	PayloadCompressed byte = 0x08
	PayloadTerminate  byte = 0x09
)

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"`
	Type                 string         `xml:"type,attr"`
	AggregateAuthVersion string         `xml:"aggregate-auth-version,attr"`
	Version              string         `xml:"version"`
	GroupAccess          string         `xml:"group-access"`
	GroupSelect          string         `xml:"group-select"`
	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"`
}

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
}

Jump to

Keyboard shortcuts

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