28 |
static uint8 licence_key[16]; |
static uint8 licence_key[16]; |
29 |
static uint8 licence_sign_key[16]; |
static uint8 licence_sign_key[16]; |
30 |
|
|
31 |
|
BOOL licence_issued = False; |
32 |
|
|
33 |
/* Generate a session key and RC4 keys, given client and server randoms */ |
/* Generate a session key and RC4 keys, given client and server randoms */ |
34 |
void |
void |
35 |
licence_generate_keys(uint8 *client_key, uint8 *server_key, uint8 *client_rsa) |
licence_generate_keys(uint8 *client_key, uint8 *server_key, uint8 *client_rsa) |
213 |
if (check != 0) |
if (check != 0) |
214 |
return; |
return; |
215 |
|
|
216 |
|
licence_issued = True; |
217 |
|
|
218 |
/* We should save the licence here */ |
/* We should save the licence here */ |
219 |
STATUS("Server issued licence.\n"); |
STATUS("Server issued licence.\n"); |
220 |
} |
} |