--- licence.c.org Wed Jan 22 09:08:53 2003 +++ licence.c Fri Apr 25 17:19:02 2003 @@ -28,6 +28,7 @@ extern char username[16]; extern char hostname[16]; +extern BOOL built_in_licence; static uint8 licence_key[16]; static uint8 licence_sign_key[16]; @@ -118,7 +119,7 @@ out_uint32_le(s, 1); out_uint16(s, 0); - out_uint16_le(s, 0xff01); + out_uint16_le(s, (built_in_licence ? 0x0301 : 0xff01) ); out_uint8p(s, client_random, SEC_RANDOM_SIZE); out_uint16(s, 0); --- rdesktop.c.org Thu Jan 30 12:59:08 2003 +++ rdesktop.c Fri Apr 25 17:17:34 2003 @@ -58,6 +58,7 @@ BOOL grab_keyboard = True; BOOL hide_decorations = False; extern BOOL owncolmap; +BOOL built_in_licence = False; /* Display usage information */ static void @@ -84,6 +85,7 @@ fprintf(stderr, " -K: keep window manager key bindings\n"); fprintf(stderr, " -T: window title\n"); fprintf(stderr, " -D: hide window manager decorations\n"); + fprintf(stderr, " -l: use built-in licence\n"); } static BOOL @@ -144,7 +146,7 @@ domain[0] = password[0] = shell[0] = directory[0] = 0; strcpy(keymapname, "en-us"); - while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemCKT:Dh?")) != -1) + while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:fbemCKT:Dlh?")) != -1) { switch (c) { @@ -237,6 +239,10 @@ case 'D': hide_decorations = True; + break; + + case 'l': + built_in_licence = True; break; case 'h':