22#ifndef FREERDP_LIB_CORE_LICENSE_H
23#define FREERDP_LIB_CORE_LICENSE_H
28#include <freerdp/crypto/crypto.h>
30#include <freerdp/log.h>
31#include <freerdp/license.h>
33#include <winpr/stream.h>
35#define CLIENT_RANDOM_LENGTH 32
60FREERDP_LOCAL BOOL license_send_valid_client_error_packet(rdpRdp* rdp);
63FREERDP_LOCAL state_run_t license_recv(rdpLicense* license,
wStream* s);
67FREERDP_LOCAL BOOL license_server_configure(rdpLicense* license);
70FREERDP_LOCAL BOOL license_server_send_request(rdpLicense* license);
72FREERDP_LOCAL
void license_free(rdpLicense* license);
74WINPR_ATTR_MALLOC(license_free, 1)
76FREERDP_LOCAL rdpLicense* license_new(rdpRdp* rdp);
78#define LICENSE_TAG FREERDP_TAG("core.license")
79#ifdef WITH_DEBUG_LICENSE
80#define DEBUG_LICENSE(...) WLog_INFO(LICENSE_TAG, __VA_ARGS__)
82#define DEBUG_LICENSE(...) \