lic

package
v0.0.0-...-6925bff Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LICENSE_REQUEST             = 0x01
	PLATFORM_CHALLENGE          = 0x02
	NEW_LICENSE                 = 0x03
	UPGRADE_LICENSE             = 0x04
	LICENSE_INFO                = 0x12
	NEW_LICENSE_REQUEST         = 0x13
	PLATFORM_CHALLENGE_RESPONSE = 0x15
	ERROR_ALERT                 = 0xFF
)
View Source
const (
	ERR_INVALID_SERVER_CERTIFICATE = 0x00000001
	ERR_NO_LICENSE                 = 0x00000002
	ERR_INVALID_SCOPE              = 0x00000004
	ERR_NO_LICENSE_SERVER          = 0x00000006
	STATUS_VALID_CLIENT            = 0x00000007
	ERR_INVALID_CLIENT             = 0x00000008
	ERR_INVALID_PRODUCTID          = 0x0000000B
	ERR_INVALID_MESSAGE_LEN        = 0x0000000C
	ERR_INVALID_MAC                = 0x00000003
)

error code

View Source
const (
	ST_TOTAL_ABORT          = 0x00000001
	ST_NO_TRANSITION        = 0x00000002
	ST_RESET_PHASE_TO_START = 0x00000003
	ST_RESEND_LAST_MESSAGE  = 0x00000004
)

state transition

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientNewLicenseRequest

type ClientNewLicenseRequest struct {
}

@summary: Send by client to ask new license for client.

RDPY doesn'support license reuse, need it in futur version

@see: http://msdn.microsoft.com/en-us/library/cc241918.aspx

	#RSA and must be only RSA
   #pure microsoft client ;-)
   #http://msdn.microsoft.com/en-us/library/1040af38-c733-4fb3-acd1-8db8cc979eda#id10

type ErrorMessage

type ErrorMessage struct {
	DwErrorCode        uint32
	DwStateTransaction uint32
	Blob               []byte
}

type LicensePacket

type LicensePacket struct {
	BMsgtype         uint8
	Flag             uint8
	WMsgSize         uint16
	LicensingMessage interface{}
}

func ReadLicensePacket

func ReadLicensePacket(r io.Reader) *LicensePacket

func (*LicensePacket) Serialize

func (l *LicensePacket) Serialize() []byte

type ServerLicenseRequest

type ServerLicenseRequest struct {
}

@summary: Send by server to signal license request

server -> client

@see: http://msdn.microsoft.com/en-us/library/cc241914.aspx

type ServerPlatformChallenge

type ServerPlatformChallenge struct {
}

@summary: challenge send from server to client @see: http://msdn.microsoft.com/en-us/library/cc241921.aspx

Jump to

Keyboard shortcuts

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