~ubuntu-branches/ubuntu/raring/freerdp/raring

« back to all changes in this revision

Viewing changes to libfreerdp/licence.h

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2010-06-23 21:39:09 UTC
  • Revision ID: james.westby@ubuntu.com-20100623213909-bb9pvvv03913tdv6
Tags: upstream-0.7.1
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- c-basic-offset: 8 -*-
 
2
   freerdp: A Remote Desktop Protocol client.
 
3
   RDP licensing negotiation
 
4
   Copyright (C) Jay Sorg 2009
 
5
 
 
6
   This program is free software; you can redistribute it and/or modify
 
7
   it under the terms of the GNU General Public License as published by
 
8
   the Free Software Foundation; either version 2 of the License, or
 
9
   (at your option) any later version.
 
10
 
 
11
   This program is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU General Public License
 
17
   along with this program; if not, write to the Free Software
 
18
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
*/
 
20
 
 
21
#ifndef __LICENCE_H
 
22
#define __LICENCE_H
 
23
 
 
24
struct rdp_licence
 
25
{
 
26
        struct rdp_sec * sec;
 
27
        uint8 licence_key[16];
 
28
        uint8 licence_sign_key[16];
 
29
        RD_BOOL licence_issued;
 
30
};
 
31
typedef struct rdp_licence rdpLicence;
 
32
 
 
33
void
 
34
licence_process(rdpLicence * licence, STREAM s);
 
35
rdpLicence *
 
36
licence_new(struct rdp_sec * secure);
 
37
void
 
38
licence_free(rdpLicence * licence);
 
39
 
 
40
#endif