diff -urN rdesktop-1.3.0-orig/Makeconf rdesktop-1.3.0/Makeconf --- rdesktop-1.3.0-orig/Makeconf 1969-12-31 19:00:00.000000000 -0500 +++ rdesktop-1.3.0/Makeconf 2003-10-30 01:37:39.000000000 -0500 @@ -0,0 +1,8 @@ +# Generated by ./configure +CC = gcc +INSTALL = install +CRYPTOBJ = +SOUNDOBJ = rdpsnd.o rdpsnd_oss.o +CFLAGS = -DKEYMAP_PATH=\"$(KEYMAP_PATH)\" -Wall -O2 -I/usr/X11R6/include -DWITH_OPENSSL -DWITH_RDPSND +LDFLAGS = -L/usr/X11R6/lib -lcrypto +TARGETS = rdesktop diff -urN rdesktop-1.3.0-orig/licence.c rdesktop-1.3.0/licence.c --- rdesktop-1.3.0-orig/licence.c 2003-10-29 09:13:59.000000000 -0500 +++ rdesktop-1.3.0/licence.c 2003-10-30 08:05:45.000000000 -0500 @@ -28,6 +28,7 @@ extern char g_username[16]; extern char hostname[16]; +extern BOOL built_in_licence; static uint8 g_licence_key[16]; static uint8 g_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 : 0x0ff01) ); out_uint8p(s, client_random, SEC_RANDOM_SIZE); out_uint16(s, 0); diff -urN rdesktop-1.3.0-orig/rdesktop.c rdesktop-1.3.0/rdesktop.c --- rdesktop-1.3.0-orig/rdesktop.c 2003-10-29 09:13:59.000000000 -0500 +++ rdesktop-1.3.0/rdesktop.c 2003-10-30 01:39:19.000000000 -0500 @@ -67,6 +67,7 @@ BOOL g_use_rdp5 = True; BOOL g_console_session = False; extern BOOL g_owncolmap; +BOOL built_in_licence = False; #ifdef WITH_RDPSND BOOL g_rdpsnd = False; @@ -111,6 +112,7 @@ fprintf(stderr, " -S: caption button size (single application mode)\n"); fprintf(stderr, " -T: window title\n"); fprintf(stderr, " -a: connection colour depth\n"); + fprintf(stderr, " -l: use built-in licence\n"); fprintf(stderr, " -r: enable specified device redirection (currently: sound)\n"); fprintf(stderr, " -0: attach to console\n"); fprintf(stderr, " -4: use RDP version 4\n"); @@ -229,7 +231,7 @@ #define VNCOPT #endif - while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:a:r:045h?")) != -1) + while ((c = getopt(argc, argv, VNCOPT "u:d:s:c:p:n:k:g:fbeEmCDKS:T:a:r:045lh?")) != -1) { switch (c) { @@ -342,6 +344,10 @@ g_hide_decorations = True; break; + case 'l': + built_in_licence = True; + break; + case 'K': g_grab_keyboard = False; break;