1
/* -*- c-basic-offset: 8 -*-
2
FreeRDP: A Remote Desktop Protocol client.
3
RDP licensing constants
5
Copyright (C) Marc-Andre Moreau <marcandre.moreau@gmail.com> 2009
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
#ifndef __CONSTANTS_LICENSE_H
23
#define __CONSTANTS_LICENSE_H
25
/* RDP licensing constants */
26
#define LICENCE_TOKEN_SIZE 10
27
#define LICENCE_HWID_SIZE 20
28
#define LICENCE_SIGNATURE_SIZE 16
30
#define LICENCE_TAG_DEMAND 0x01
31
#define LICENCE_TAG_AUTHREQ 0x02
32
#define LICENCE_TAG_ISSUE 0x03
33
#define LICENCE_TAG_REISSUE 0x04
34
#define LICENCE_TAG_PRESENT 0x12
35
#define LICENCE_TAG_REQUEST 0x13
36
#define LICENCE_TAG_AUTHRESP 0x15
37
#define LICENCE_TAG_RESULT 0xff
39
#define LICENCE_TAG_USER 0x000f
40
#define LICENCE_TAG_HOST 0x0010
42
#endif /* __CONSTANTS_LICENSE_H */