sec

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADDRESS_FAMILY_INET  uint16 = 0x0002
	ADDRESS_FAMILY_INET6        = 0x0017
)
View Source
const (
	SEC_EXCHANGE_PKT       = 0x0001
	SEC_TRANSPORT_REQ      = 0x0002
	SEC_TRANSPORT_RSP      = 0x0004
	SEC_ENCRYPT            = 0x0008
	SEC_RESET_SEQNO        = 0x0010
	SEC_IGNORE_SEQNO       = 0x0020
	SEC_INFO_PKT           = 0x0040
	SEC_LICENSE_PKT        = 0x0080
	SEC_LICENSE_ENCRYPT_CS = 0x0200
	SEC_LICENSE_ENCRYPT_SC = 0x0200
	SEC_REDIRECTION_PKT    = 0x0400
	SEC_SECURE_CHECKSUM    = 0x0800
	SEC_AUTODETECT_REQ     = 0x1000
	SEC_AUTODETECT_RSP     = 0x2000
	SEC_HEARTBEAT          = 0x4000
	SEC_FLAGSHI_VALID      = 0x8000
)

Security Header Flags

Variables

This section is empty.

Functions

This section is empty.

Types

type TsAutoReconnectInfo

type TsAutoReconnectInfo struct{}

TsAutoReconnectInfo reconnect information

func (*TsAutoReconnectInfo) Write

func (i *TsAutoReconnectInfo) Write(w io.Writer)

type TsExtendedInfoPacket

type TsExtendedInfoPacket struct {
	ClientAddressFamily uint16
	CbClientAddress     uint16
	ClientAddress       []byte
	CbClientDir         uint16
	ClientDir           []byte
	ClientTimeZone      []byte
	ClientSessionId     uint32
	PerformanceFlags    uint32
	AutoReconnect       *TsAutoReconnectInfo
}

TsExtendedInfoPacket https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/05ada9e4-a468-494b-8694-eb806a0ecc89

func NewExtendedInfoPacket

func NewExtendedInfoPacket() *TsExtendedInfoPacket

func (*TsExtendedInfoPacket) Write

func (p *TsExtendedInfoPacket) Write(w io.Writer)

type TsSecurityHeader

type TsSecurityHeader struct {
	Flags   uint16
	FlagsHi uint16 // unused
}

TsSecurityHeader https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/e13405c5-668b-4716-94b2-1c2654ca1ad4

func NewTsSecurityHeader

func NewTsSecurityHeader(flags uint16) *TsSecurityHeader

func (*TsSecurityHeader) Read

func (h *TsSecurityHeader) Read(r io.Reader)

func (*TsSecurityHeader) Write

func (h *TsSecurityHeader) Write(w io.Writer)

Jump to

Keyboard shortcuts

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