|
enum | LicenseRequestType {
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
} |
| Licensing Packet Types. More...
|
|
enum | {
BB_ANY_BLOB = 0x0000
, BB_DATA_BLOB = 0x0001
, BB_RANDOM_BLOB = 0x0002
, BB_CERTIFICATE_BLOB = 0x0003
,
BB_ERROR_BLOB = 0x0004
, BB_ENCRYPTED_DATA_BLOB = 0x0009
, BB_KEY_EXCHG_ALG_BLOB = 0x000D
, BB_SCOPE_BLOB = 0x000E
,
BB_CLIENT_USER_NAME_BLOB = 0x000F
, BB_CLIENT_MACHINE_NAME_BLOB = 0x0010
} |
| binary Blob Types More...
|
|
enum | {
ERR_INVALID_SERVER_CERTIFICATE = 0x00000001
, ERR_NO_LICENSE = 0x00000002
, ERR_INVALID_MAC = 0x00000003
, ERR_INVALID_SCOPE = 0x00000004
,
ERR_NO_LICENSE_SERVER = 0x00000006
, STATUS_VALID_CLIENT = 0x00000007
, ERR_INVALID_CLIENT = 0x00000008
, ERR_INVALID_PRODUCT_ID = 0x0000000B
,
ERR_INVALID_MESSAGE_LENGTH = 0x0000000C
} |
| license Error Codes More...
|
|
enum | { ST_TOTAL_ABORT = 0x00000001
, ST_NO_TRANSITION = 0x00000002
, ST_RESET_PHASE_TO_START = 0x00000003
, ST_RESEND_LAST_MESSAGE = 0x00000004
} |
| state Transition Codes More...
|
|
enum | { WIN32_PLATFORM_CHALLENGE_TYPE = 0x0100
, WIN16_PLATFORM_CHALLENGE_TYPE = 0x0200
, WINCE_PLATFORM_CHALLENGE_TYPE = 0x0300
, OTHER_PLATFORM_CHALLENGE_TYPE = 0xFF00
} |
| Platform Challenge Types. More...
|
|
enum | { LICENSE_DETAIL_SIMPLE = 0x0001
, LICENSE_DETAIL_MODERATE = 0x0002
, LICENSE_DETAIL_DETAIL = 0x0003
} |
| License Detail Levels. More...
|
|
enum | {
CLIENT_OS_ID_WINNT_351 = 0x01000000
, CLIENT_OS_ID_WINNT_40 = 0x02000000
, CLIENT_OS_ID_WINNT_50 = 0x03000000
, CLIENT_OS_ID_WINNT_POST_52 = 0x04000000
,
CLIENT_IMAGE_ID_MICROSOFT = 0x00010000
, CLIENT_IMAGE_ID_CITRIX = 0x00020000
} |
|
|
static BOOL | license_send_error_alert (rdpLicense *license, UINT32 dwErrorCode, UINT32 dwStateTransition, const LICENSE_BLOB *info) |
|
static BOOL | license_set_state (rdpLicense *license, LICENSE_STATE state) |
|
static const char * | license_get_state_string (LICENSE_STATE state) |
|
static const char * | license_preferred_key_exchange_alg_string (UINT32 alg, char *buffer, size_t size) |
|
static const char * | license_request_type_string (UINT32 type) |
|
static const char * | licencse_blob_type_string (UINT16 type) |
|
static wStream * | license_send_stream_init (rdpLicense *license) |
| Initialize a license packet stream. More...
|
|
static void | license_generate_randoms (rdpLicense *license) |
|
static BOOL | license_generate_keys (rdpLicense *license) |
|
static BOOL | license_generate_hwid (rdpLicense *license) |
|
static BOOL | license_encrypt_premaster_secret (rdpLicense *license) |
|
static LICENSE_PRODUCT_INFO * | license_new_product_info (void) |
|
static void | license_free_product_info (LICENSE_PRODUCT_INFO *productInfo) |
|
static BOOL | license_read_product_info (wStream *s, LICENSE_PRODUCT_INFO *productInfo) |
|
static LICENSE_BLOB * | license_new_binary_blob (UINT16 type) |
|
static void | license_free_binary_blob (LICENSE_BLOB *blob) |
|
static BOOL | license_read_binary_blob_data (LICENSE_BLOB *blob, UINT16 type, const void *data, size_t length) |
|
static BOOL | license_read_binary_blob (wStream *s, LICENSE_BLOB *blob) |
|
static BOOL | license_write_binary_blob (wStream *s, const LICENSE_BLOB *blob) |
|
static SCOPE_LIST * | license_new_scope_list (void) |
|
static BOOL | license_scope_list_resize (SCOPE_LIST *scopeList, UINT32 count) |
|
static void | license_free_scope_list (SCOPE_LIST *scopeList) |
|
static BOOL | license_read_scope_list (wStream *s, SCOPE_LIST *scopeList) |
|
static BOOL | license_write_scope_list (wStream *s, const SCOPE_LIST *scopeList) |
|
static BOOL | license_read_license_request_packet (rdpLicense *license, wStream *s) |
|
static BOOL | license_write_license_request_packet (const rdpLicense *license, wStream *s) |
|
static BOOL | license_read_platform_challenge_packet (rdpLicense *license, wStream *s) |
|
static BOOL | license_send_platform_challenge_packet (rdpLicense *license) |
|
static BOOL | license_read_new_or_upgrade_license_packet (rdpLicense *license, wStream *s) |
|
static BOOL | license_read_error_alert_packet (rdpLicense *license, wStream *s) |
|
static BOOL | license_write_new_license_request_packet (const rdpLicense *license, wStream *s) |
|
static BOOL | license_read_new_license_request_packet (rdpLicense *license, wStream *s) |
|
static BOOL | license_answer_license_request (rdpLicense *license) |
|
static BOOL | license_send_platform_challenge_response (rdpLicense *license) |
|
static BOOL | license_read_platform_challenge_response (rdpLicense *license, wStream *s) |
|
static BOOL | license_read_client_platform_challenge_response (rdpLicense *license, wStream *s) |
|
static BOOL | license_write_client_platform_challenge_response (rdpLicense *license, wStream *s) |
|
static BOOL | license_read_server_upgrade_license (rdpLicense *license, wStream *s) |
|
static BOOL | license_write_server_upgrade_license (const rdpLicense *license, wStream *s) |
|
static BOOL | license_send_license_info (rdpLicense *license, const LICENSE_BLOB *calBlob, const BYTE *signature, size_t signature_length) |
|
static BOOL | license_read_license_info (rdpLicense *license, wStream *s) |
|
static state_run_t | license_client_recv (rdpLicense *license, wStream *s) |
|
static state_run_t | license_server_recv (rdpLicense *license, wStream *s) |
|
static BOOL | license_ensure_state (rdpLicense *license, LICENSE_STATE state, UINT32 msg) |
|
state_run_t | license_recv (rdpLicense *license, wStream *s) |
|
static BOOL | license_check_stream_length (wStream *s, SSIZE_T expect, const char *where) |
|
static BOOL | license_check_stream_capacity (wStream *s, size_t expect, const char *where) |
|
static BOOL | computeCalHash (const char *hostname, char *hashStr, size_t len) |
|
static BOOL | saveCal (const rdpSettings *settings, const BYTE *data, size_t length, const char *hostname) |
|
static BYTE * | loadCalFile (const rdpSettings *settings, const char *hostname, size_t *dataLen) |
|
static BOOL | license_read_preamble (wStream *s, BYTE *bMsgType, BYTE *flags, UINT16 *wMsgSize) |
|
static BOOL | license_write_preamble (wStream *s, BYTE bMsgType, BYTE flags, UINT16 wMsgSize) |
|
static BOOL | license_send (rdpLicense *license, wStream *s, BYTE type) |
|
static BOOL | license_server_send_new_or_upgrade_license (rdpLicense *license, BOOL upgrade) |
|
static BOOL | license_get_server_rsa_public_key (rdpLicense *license) |
|
static BOOL | license_rc4_with_licenseKey (const rdpLicense *license, const BYTE *input, size_t len, LICENSE_BLOB *target) |
|
static BOOL | license_encrypt_and_MAC (rdpLicense *license, const BYTE *input, size_t len, LICENSE_BLOB *target, BYTE *mac, size_t mac_length) |
|
static BOOL | license_decrypt_and_check_MAC (rdpLicense *license, const BYTE *input, size_t len, LICENSE_BLOB *target, const BYTE *packetMac) |
|
static BOOL | license_write_product_info (wStream *s, const LICENSE_PRODUCT_INFO *productInfo) |
|
static BOOL | license_write_encrypted_premaster_secret_blob (wStream *s, const LICENSE_BLOB *blob, UINT32 ModulusLength) |
|
static BOOL | license_read_encrypted_premaster_secret_blob (wStream *s, LICENSE_BLOB *blob, UINT32 *ModulusLength) |
|
static BOOL | license_check_preferred_alg (rdpLicense *license, UINT32 PreferredKeyExchangeAlg, const char *where) |
|
static BOOL | license_send_license_request_packet (rdpLicense *license) |
|
static BOOL | license_read_encrypted_blob (const rdpLicense *license, wStream *s, LICENSE_BLOB *target) |
|
BOOL | license_send_valid_client_error_packet (rdpRdp *rdp) |
|
rdpLicense * | license_new (rdpRdp *rdp) |
|
void | license_free (rdpLicense *license) |
|
LICENSE_STATE | license_get_state (const rdpLicense *license) |
|
LICENSE_TYPE | license_get_type (const rdpLicense *license) |
|
BOOL | license_server_send_request (rdpLicense *license) |
|
static BOOL | license_set_string (const char *what, const char *value, BYTE **bdst, UINT32 *dstLen) |
|
BOOL | license_server_configure (rdpLicense *license) |
|
rdpLicense * | license_get (rdpContext *context) |
|