/[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 60 by jsorg71, Sun Jul 14 04:29:21 2002 UTC revision 61 by matthewc, Sun Jul 14 12:06:03 2002 UTC
# Line 162  licence_process_demand(STREAM s) Line 162  licence_process_demand(STREAM s)
162    
163          /* Generate a signature for the HWID buffer */          /* Generate a signature for the HWID buffer */
164          licence_generate_hwid(hwid);          licence_generate_hwid(hwid);
165          sec_sign(signature, licence_sign_key, 16, hwid, sizeof(hwid));          sec_sign(signature, 16, licence_sign_key, 16, hwid, sizeof(hwid));
166    
167          /* Now encrypt the HWID */          /* Now encrypt the HWID */
168          RC4_set_key(&crypt_key, 16, licence_key);          RC4_set_key(&crypt_key, 16, licence_key);
# Line 245  licence_process_authreq(STREAM s) Line 245  licence_process_authreq(STREAM s)
245          licence_generate_hwid(hwid);          licence_generate_hwid(hwid);
246          memcpy(sealed_buffer, decrypt_token, LICENCE_TOKEN_SIZE);          memcpy(sealed_buffer, decrypt_token, LICENCE_TOKEN_SIZE);
247          memcpy(sealed_buffer + LICENCE_TOKEN_SIZE, hwid, LICENCE_HWID_SIZE);          memcpy(sealed_buffer + LICENCE_TOKEN_SIZE, hwid, LICENCE_HWID_SIZE);
248          sec_sign(out_sig, licence_sign_key, 16,          sec_sign(out_sig, 16, licence_sign_key, 16,
249                   sealed_buffer, sizeof(sealed_buffer));                   sealed_buffer, sizeof(sealed_buffer));
250    
251          /* Deliberately break signature if licencing disabled */          /* Deliberately break signature if licencing disabled */

Legend:
Removed from v.60  
changed lines
  Added in v.61

  ViewVC Help
Powered by ViewVC 1.1.26