77 |
RD_BOOL g_bitmap_cache_persist_enable = False; |
RD_BOOL g_bitmap_cache_persist_enable = False; |
78 |
RD_BOOL g_bitmap_cache_precache = True; |
RD_BOOL g_bitmap_cache_precache = True; |
79 |
RD_BOOL g_encryption = True; |
RD_BOOL g_encryption = True; |
80 |
RD_BOOL packet_encryption = True; |
RD_BOOL g_packet_encryption = True; |
81 |
RD_BOOL g_desktop_save = True; /* desktop save order */ |
RD_BOOL g_desktop_save = True; /* desktop save order */ |
82 |
RD_BOOL g_polygon_ellipse_orders = True; /* polygon / ellipse orders */ |
RD_BOOL g_polygon_ellipse_orders = True; /* polygon / ellipse orders */ |
83 |
RD_BOOL g_fullscreen = False; |
RD_BOOL g_fullscreen = False; |
87 |
RD_BOOL g_rdpclip = True; |
RD_BOOL g_rdpclip = True; |
88 |
RD_BOOL g_console_session = False; |
RD_BOOL g_console_session = False; |
89 |
RD_BOOL g_numlock_sync = False; |
RD_BOOL g_numlock_sync = False; |
90 |
RD_BOOL lspci_enabled = False; |
RD_BOOL g_lspci_enabled = False; |
91 |
RD_BOOL g_owncolmap = False; |
RD_BOOL g_owncolmap = False; |
92 |
RD_BOOL g_ownbackstore = True; /* We can't rely on external BackingStore */ |
RD_BOOL g_ownbackstore = True; /* We can't rely on external BackingStore */ |
93 |
RD_BOOL g_seamless_rdp = False; |
RD_BOOL g_seamless_rdp = False; |
127 |
usage(char *program) |
usage(char *program) |
128 |
{ |
{ |
129 |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n"); |
130 |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2005 Matt Chapman.\n"); |
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2007 Matt Chapman.\n"); |
131 |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n"); |
132 |
|
|
133 |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
fprintf(stderr, "Usage: %s [options] server[:port]\n", program); |
582 |
g_encryption = False; |
g_encryption = False; |
583 |
break; |
break; |
584 |
case 'E': |
case 'E': |
585 |
packet_encryption = False; |
g_packet_encryption = False; |
586 |
break; |
break; |
587 |
case 'm': |
case 'm': |
588 |
g_sendmotion = False; |
g_sendmotion = False; |
633 |
g_server_depth = strtol(optarg, NULL, 10); |
g_server_depth = strtol(optarg, NULL, 10); |
634 |
if (g_server_depth != 8 && |
if (g_server_depth != 8 && |
635 |
g_server_depth != 16 && |
g_server_depth != 16 && |
636 |
g_server_depth != 15 && g_server_depth != 24) |
g_server_depth != 15 && g_server_depth != 24 |
637 |
|
&& g_server_depth != 32) |
638 |
{ |
{ |
639 |
error("Invalid server colour depth.\n"); |
error("Invalid server colour depth.\n"); |
640 |
return 1; |
return 1; |
727 |
} |
} |
728 |
else if (str_startswith(optarg, "lspci")) |
else if (str_startswith(optarg, "lspci")) |
729 |
{ |
{ |
730 |
lspci_enabled = True; |
g_lspci_enabled = True; |
731 |
} |
} |
732 |
else if (str_startswith(optarg, "lptport")) |
else if (str_startswith(optarg, "lptport")) |
733 |
{ |
{ |
921 |
} |
} |
922 |
#endif |
#endif |
923 |
|
|
924 |
if (lspci_enabled) |
if (g_lspci_enabled) |
925 |
lspci_init(); |
lspci_init(); |
926 |
|
|
927 |
rdpdr_init(); |
rdpdr_init(); |
939 |
|
|
940 |
/* By setting encryption to False here, we have an encrypted login |
/* By setting encryption to False here, we have an encrypted login |
941 |
packet but unencrypted transfer of other packets */ |
packet but unencrypted transfer of other packets */ |
942 |
if (!packet_encryption) |
if (!g_packet_encryption) |
943 |
g_encryption = False; |
g_encryption = False; |
944 |
|
|
945 |
|
|