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
59FREERDP_LOCAL BOOL license_send_valid_client_error_packet(rdpRdp* rdp);
61FREERDP_LOCAL state_run_t license_recv(rdpLicense* license,
wStream* s);
64FREERDP_LOCAL BOOL license_server_configure(rdpLicense* license);
65FREERDP_LOCAL BOOL license_server_send_request(rdpLicense* license);
67FREERDP_LOCAL
void license_free(rdpLicense* license);
69WINPR_ATTR_MALLOC(license_free, 1)
70FREERDP_LOCAL rdpLicense* license_new(rdpRdp* rdp);
72#define LICENSE_TAG FREERDP_TAG("core.license")
73#ifdef WITH_DEBUG_LICENSE
74#define DEBUG_LICENSE(...) WLog_INFO(LICENSE_TAG, __VA_ARGS__)
76#define DEBUG_LICENSE(...) \