/[rdesktop]/sourceforge.net/trunk/rdesktop/licence.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/licence.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 709 by astrand, Tue Jun 1 08:06:02 2004 UTC revision 710 by jsorg71, Tue Jun 15 22:17:08 2004 UTC
# Line 27  Line 27 
27  #endif  #endif
28    
29  extern char g_username[16];  extern char g_username[16];
30  extern char hostname[16];  extern char g_hostname[16];
31    
32  static uint8 g_licence_key[16];  static uint8 g_licence_key[16];
33  static uint8 g_licence_sign_key[16];  static uint8 g_licence_sign_key[16];
# Line 56  static void Line 56  static void
56  licence_generate_hwid(uint8 * hwid)  licence_generate_hwid(uint8 * hwid)
57  {  {
58          buf_out_uint32(hwid, 2);          buf_out_uint32(hwid, 2);
59          strncpy((char *) (hwid + 4), hostname, LICENCE_HWID_SIZE - 4);          strncpy((char *) (hwid + 4), g_hostname, LICENCE_HWID_SIZE - 4);
60  }  }
61    
62  /* Present an existing licence to the server */  /* Present an existing licence to the server */
# Line 174  licence_process_demand(STREAM s) Line 174  licence_process_demand(STREAM s)
174                  return;                  return;
175          }          }
176    
177          licence_send_request(null_data, null_data, g_username, hostname);          licence_send_request(null_data, null_data, g_username, g_hostname);
178  }  }
179    
180  /* Send an authentication response packet */  /* Send an authentication response packet */

Legend:
Removed from v.709  
changed lines
  Added in v.710

  ViewVC Help
Powered by ViewVC 1.1.26