Documentation ¶
Index ¶
- Constants
- func MakeConferenceCreateRequest(userData []byte) []byte
- func ReadConferenceCreateResponse(data []byte) []interface{}
- type CapabilityFlag
- type CertBlob
- type CertData
- type CertificateType
- type ChannelDef
- type ChannelOptions
- type ClientCoreData
- type ClientNetworkData
- type ClientSecurityData
- type ColorDepth
- type ConnectionType
- type EncryptionLevel
- type EncryptionMethod
- type HighColor
- type KeyboardLayout
- type KeyboardType
- type Message
- type ProprietaryServerCertificate
- type RSAPublicKey
- type ScData
- type Sequence
- type ServerCertificate
- type ServerCoreData
- type ServerNetworkData
- type ServerSecurityData
- type Support
- type VERSION
- type X509CertificateChain
Constants ¶
View Source
const ( //server -> client SC_CORE Message = 0x0C01 SC_SECURITY = 0x0C02 SC_NET = 0x0C03 //client -> server CS_CORE = 0xC001 CS_SECURITY = 0xC002 CS_NET = 0xC003 CS_CLUSTER = 0xC004 CS_MONITOR = 0xC005 )
View Source
const ( RNS_UD_COLOR_8BPP ColorDepth = 0xCA01 RNS_UD_COLOR_16BPP_555 = 0xCA02 RNS_UD_COLOR_16BPP_565 = 0xCA03 RNS_UD_COLOR_24BPP = 0xCA04 )
View Source
const ( HIGH_COLOR_4BPP HighColor = 0x0004 HIGH_COLOR_8BPP = 0x0008 HIGH_COLOR_15BPP = 0x000f HIGH_COLOR_16BPP = 0x0010 HIGH_COLOR_24BPP = 0x0018 )
View Source
const ( RNS_UD_24BPP_SUPPORT uint16 = 0x0001 RNS_UD_16BPP_SUPPORT = 0x0002 RNS_UD_15BPP_SUPPORT = 0x0004 RNS_UD_32BPP_SUPPORT = 0x0008 )
View Source
const ( RNS_UD_CS_SUPPORT_ERRINFO_PDU uint16 = 0x0001 RNS_UD_CS_WANT_32BPP_SESSION = 0x0002 RNS_UD_CS_SUPPORT_STATUSINFO_PDU = 0x0004 RNS_UD_CS_STRONG_ASYMMETRIC_KEYS = 0x0008 RNS_UD_CS_UNUSED = 0x0010 RNS_UD_CS_VALID_CONNECTION_TYPE = 0x0020 RNS_UD_CS_SUPPORT_MONITOR_LAYOUT_PDU = 0x0040 RNS_UD_CS_SUPPORT_NETCHAR_AUTODETECT = 0x0080 RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL = 0x0100 RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE = 0x0200 RNS_UD_CS_SUPPORT_HEARTBEAT_PDU = 0x0400 )
View Source
const ( CONNECTION_TYPE_MODEM ConnectionType = 0x01 CONNECTION_TYPE_BROADBAND_LOW = 0x02 CONNECTION_TYPE_SATELLITEV = 0x03 CONNECTION_TYPE_BROADBAND_HIGH = 0x04 CONNECTION_TYPE_WAN = 0x05 CONNECTION_TYPE_LAN = 0x06 CONNECTION_TYPE_AUTODETECT = 0x07 )
View Source
const ( ENCRYPTION_FLAG_40BIT uint32 = 0x00000001 ENCRYPTION_FLAG_128BIT = 0x00000002 ENCRYPTION_FLAG_56BIT = 0x00000008 FIPS_ENCRYPTION_FLAG = 0x00000010 )
View Source
const ( ENCRYPTION_LEVEL_NONE EncryptionLevel = 0x00000000 ENCRYPTION_LEVEL_LOW = 0x00000001 ENCRYPTION_LEVEL_CLIENT_COMPATIBLE = 0x00000002 ENCRYPTION_LEVEL_HIGH = 0x00000003 ENCRYPTION_LEVEL_FIPS = 0x00000004 )
View Source
const ( CHANNEL_OPTION_INITIALIZED ChannelOptions = 0x80000000 CHANNEL_OPTION_ENCRYPT_RDP = 0x40000000 CHANNEL_OPTION_ENCRYPT_SC = 0x20000000 CHANNEL_OPTION_ENCRYPT_CS = 0x10000000 CHANNEL_OPTION_PRI_HIGH = 0x08000000 CHANNEL_OPTION_PRI_MED = 0x04000000 CHANNEL_OPTION_PRI_LOW = 0x02000000 CHANNEL_OPTION_COMPRESS_RDP = 0x00800000 CHANNEL_OPTION_COMPRESS = 0x00400000 CHANNEL_OPTION_SHOW_PROTOCOL = 0x00200000 REMOTE_CONTROL_PERSISTENT = 0x00100000 )
View Source
const ( KT_IBM_PC_XT_83_KEY KeyboardType = 0x00000001 KT_OLIVETTI = 0x00000002 KT_IBM_PC_AT_84_KEY = 0x00000003 KT_IBM_101_102_KEYS = 0x00000004 KT_NOKIA_1050 = 0x00000005 KT_NOKIA_9140 = 0x00000006 KT_JAPANESE = 0x00000007 )
View Source
const ( ARABIC KeyboardLayout = 0x00000401 BULGARIAN = 0x00000402 CHINESE_US_KEYBOARD = 0x00000404 CZECH = 0x00000405 DANISH = 0x00000406 GERMAN = 0x00000407 GREEK = 0x00000408 US = 0x00000409 SPANISH = 0x0000040a FINNISH = 0x0000040b FRENCH = 0x0000040c HEBREW = 0x0000040d HUNGARIAN = 0x0000040e ICELANDIC = 0x0000040f ITALIAN = 0x00000410 JAPANESE = 0x00000411 KOREAN = 0x00000412 DUTCH = 0x00000413 NORWEGIAN = 0x00000414 )
Variables ¶
This section is empty.
Functions ¶
func ReadConferenceCreateResponse ¶
func ReadConferenceCreateResponse(data []byte) []interface{}
Types ¶
type CertificateType ¶
type CertificateType uint32
*
const ( CERT_CHAIN_VERSION_1 CertificateType = 0x00000001 CERT_CHAIN_VERSION_2 = 0x00000002 )
type ChannelDef ¶
type ClientCoreData ¶
type ClientCoreData struct { RdpVersion VERSION `struc:"uint32,little"` DesktopWidth uint16 `struc:"little"` DesktopHeight uint16 `struc:"little"` ColorDepth ColorDepth `struc:"little"` SasSequence Sequence `struc:"little"` KbdLayout KeyboardLayout `struc:"little"` ClientBuild uint32 `struc:"little"` ClientName [32]byte `struc:"[32]byte"` KeyboardType uint32 `struc:"little"` KeyboardSubType uint32 `struc:"little"` KeyboardFnKeys uint32 `struc:"little"` ImeFileName [64]byte `struc:"[64]byte"` PostBeta2ColorDepth ColorDepth `struc:"little"` ClientProductId uint16 `struc:"little"` SerialNumber uint32 `struc:"little"` HighColorDepth HighColor `struc:"little"` SupportedColorDepths uint16 `struc:"little"` EarlyCapabilityFlags uint16 `struc:"little"` ClientDigProductId [64]byte `struc:"[64]byte"` ConnectionType uint8 `struc:"uint8"` Pad1octet uint8 `struc:"uint8"` ServerSelectedProtocol uint32 `struc:"little"` }
func NewClientCoreData ¶
func NewClientCoreData() *ClientCoreData
func (*ClientCoreData) Pack ¶ added in v0.2.0
func (data *ClientCoreData) Pack() []byte
type ClientNetworkData ¶
type ClientNetworkData struct { ChannelCount uint32 ChannelDefArray []ChannelDef }
func NewClientNetworkData ¶
func NewClientNetworkData() *ClientNetworkData
func (*ClientNetworkData) AddVirtualChannel ¶ added in v0.2.0
func (n *ClientNetworkData) AddVirtualChannel(name string, option uint32)
func (*ClientNetworkData) Pack ¶ added in v0.2.0
func (n *ClientNetworkData) Pack() []byte
type ClientSecurityData ¶
func NewClientSecurityData ¶
func NewClientSecurityData() *ClientSecurityData
func (*ClientSecurityData) Pack ¶ added in v0.2.0
func (d *ClientSecurityData) Pack() []byte
type ProprietaryServerCertificate ¶ added in v0.2.0
type ProprietaryServerCertificate struct { DwSigAlgId uint32 `struc:"little"` //0x00000001 DwKeyAlgId uint32 `struc:"little"` //0x00000001 PublicKeyBlobType uint16 `struc:"little"` //0x0006 PublicKeyBlobLen uint16 `struc:"little,sizeof=PublicKeyBlob"` PublicKeyBlob RSAPublicKey `struc:"little"` SignatureBlobType uint16 `struc:"little"` //0x0008 SignatureBlobLen uint16 `struc:"little,sizeof=SignatureBlob"` SignatureBlob []byte `struc:"little"` //PaddingLen uint16 `struc:"little,sizeof=Padding,skip"` Padding []byte `struc:"[8]byte"` }
func (*ProprietaryServerCertificate) Encrypt ¶ added in v0.2.0
func (p *ProprietaryServerCertificate) Encrypt() []byte
func (*ProprietaryServerCertificate) GetPublicKey ¶ added in v0.2.0
func (p *ProprietaryServerCertificate) GetPublicKey() (uint32, []byte)
func (*ProprietaryServerCertificate) Unpack ¶ added in v0.2.0
func (p *ProprietaryServerCertificate) Unpack(r io.Reader) error
func (*ProprietaryServerCertificate) Verify ¶ added in v0.2.0
func (p *ProprietaryServerCertificate) Verify() bool
type RSAPublicKey ¶ added in v0.2.0
type ServerCertificate ¶ added in v0.2.0
type ServerCoreData ¶
type ServerCoreData struct { RdpVersion VERSION `struc:"uint32,little"` ClientRequestedProtocol uint32 `struc:"little"` EarlyCapabilityFlags uint32 `struc:"little"` }
func NewServerCoreData ¶
func NewServerCoreData() *ServerCoreData
func (*ServerCoreData) ScType ¶ added in v0.2.0
func (d *ServerCoreData) ScType() Message
func (*ServerCoreData) Serialize ¶
func (d *ServerCoreData) Serialize() []byte
type ServerNetworkData ¶
type ServerNetworkData struct { MCSChannelId uint16 `struc:"little"` ChannelCount uint16 `struc:"little,sizeof=ChannelIdArray"` ChannelIdArray []uint16 `struc:"little"` }
func NewServerNetworkData ¶
func NewServerNetworkData() *ServerNetworkData
func (*ServerNetworkData) ScType ¶ added in v0.2.0
func (d *ServerNetworkData) ScType() Message
type ServerSecurityData ¶
type ServerSecurityData struct { EncryptionMethod uint32 `struc:"little"` EncryptionLevel uint32 `struc:"little"` ServerRandomLen uint32 //0x00000020 ServerCertLen uint32 ServerRandom []byte ServerCertificate ServerCertificate }
func NewServerSecurityData ¶
func NewServerSecurityData() *ServerSecurityData
func (*ServerSecurityData) ScType ¶ added in v0.2.0
func (d *ServerSecurityData) ScType() Message
type VERSION ¶
type VERSION uint32
*
const ( RDP_VERSION_4 VERSION = 0x00080001 RDP_VERSION_5_PLUS = 0x00080004 )
type X509CertificateChain ¶ added in v0.2.0
type X509CertificateChain struct { NumCertBlobs uint32 `struc:"little,sizeof=CertBlobArray"` CertBlobArray []CertBlob `struc:"little"` Padding []byte `struc:"[12]byte"` }
func (*X509CertificateChain) Encrypt ¶ added in v0.2.0
func (p *X509CertificateChain) Encrypt() []byte
func (*X509CertificateChain) GetPublicKey ¶ added in v0.2.0
func (p *X509CertificateChain) GetPublicKey() (uint32, []byte)
func (*X509CertificateChain) Unpack ¶ added in v0.2.0
func (p *X509CertificateChain) Unpack(r io.Reader) error
func (*X509CertificateChain) Verify ¶ added in v0.2.0
func (p *X509CertificateChain) Verify() bool
Click to show internal directories.
Click to hide internal directories.