Commit Graph

266 Commits

Author SHA1 Message Date
Peter Åstrand
440542c535 Elminate code duplication in rdp_reconnect and sec_connect.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1528 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-07 20:01:58 +00:00
Peter Åstrand
058ee33be3 Clean up and document the return values. Trying to solve a number of issues:
* The current return values have been selected pretty much without any
thought. Basically, the value 1 is used for all different kinds of
errors, except for a corner case where the server doesn't send a
RDP_PDU_DEACTIVATE in combination with a few special "reasons", where
the value 2 is used instead.

* rdesktop will currently also return with 2 if the user is closing
the rdesktop window, the same error as many other fatal errors, which
is somewhat strange.

* The main principle of my patch is to utilize more of the available
256 return codes. We are currently only using 3 values out of
256. This is bad; rdesktop should expose more information to the
caller about error conditions if it can.

Besides using the standardized exit codes for generic errors such as
EX_USAGE for command line usage errors, I've also exposed the
"extended disconnect reasons" from RDP. This allows for, for example,
to be able to distinguish between a logoff and a disconnect.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1510 423420c4-83ab-492f-b58f-81f9feb106b5
2009-09-02 13:03:43 +00:00
Peter Åstrand
27388283ad Removed the hardcoded limit of the username length.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1478 423420c4-83ab-492f-b58f-81f9feb106b5
2008-09-26 11:40:54 +00:00
Matt Chapman
b25d176fe1 Bump version number in preparation for release.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1464 423420c4-83ab-492f-b58f-81f9feb106b5
2008-04-05 06:15:45 +00:00
Matt Chapman
2e16fa661d Add some more warnings and sanity checks.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1425 423420c4-83ab-492f-b58f-81f9feb106b5
2008-01-05 05:43:02 +00:00
Jay Sorg
5d1527d1b6 32 bit color
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1416 423420c4-83ab-492f-b58f-81f9feb106b5
2007-08-30 04:47:36 +00:00
Jay Sorg
15cede539f g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1391 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-10 05:48:50 +00:00
Jay Sorg
f39d7fa430 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1390 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-10 05:29:59 +00:00
Jay Sorg
e486d11511 moved all openssl calls to one file
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1373 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-09 07:24:44 +00:00
Jay Sorg
6091381a81 prefix BOOL with RD_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
797df4fa02 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Michael Gernoth
8d3020eaff only declare rdpsnd_optarg when sound-support is configured
make sure last element of sound-driver-list is NULL


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1331 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-06 23:05:39 +00:00
Michael Gernoth
f37c871e8b Smartcard support by Alexi Volkov <alexi@pravex.kiev.ua> and additional
patches for smartcard-support by Jennings Jared <jared.jennings.ctr@eglin.af.mil>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1308 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 20:52:01 +00:00
Peter Åstrand
6ac7e0a1be Prevent segfaults in out of memory conditions by checking the pointer returned from XGetImage.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1305 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-27 12:59:38 +00:00
Michael Gernoth
6e6853dff8 move sound-driver selection code in rdpsnd_init
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1271 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-21 19:00:11 +00:00
Michael Gernoth
162bc366b3 handle missing audio-drivers better
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1270 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-18 21:42:50 +00:00
Michael Gernoth
07b5b9e41c allow multiple sound-drivers to be compiled in simultaneously and
make the runtime selectable


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1254 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 11:04:50 +00:00
Peter Åstrand
b73a2b4d8c The default color depth is now the depth of the root window.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1225 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-12 06:47:24 +00:00
Peter Åstrand
9e3dd0b7ab Eliminated a few compile warnings.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1223 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-09 20:16:31 +00:00
Pierre Ossman
c2c379220f Cut down own the redundant clipboard mode arguments.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1214 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-28 14:46:47 +00:00
Pierre Ossman
ba2f441f18 Control clipboard behaviour (and even disable it) using command line options.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1206 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-27 09:20:24 +00:00
Peter Åstrand
b06a70bf51 Initial support for SeamlessRDP
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1088 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-10 08:50:43 +00:00
Peter Åstrand
7b55ece8e4 Added support for a new virtual channel, lspci, which makes it
possible for the remote RDP server to enumerate the local PCI devices.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1052 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-02 15:22:25 +00:00
Peter Åstrand
67fff0767c Increased the length of the directory variable to 256 bytes; the same as for the shell.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1046 423420c4-83ab-492f-b58f-81f9feb106b5
2006-02-27 19:36:35 +00:00
Erik Forsberg
11d2983f62 Length of shell (-s argument) changed from 128 to 256, since investigations
show that WTS servers chop the string at 256 byte.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1045 423420c4-83ab-492f-b58f-81f9feb106b5
2006-02-24 08:21:31 +00:00
Peter Åstrand
acffcd7e9c Applied patch #1390148 from Ilya Konstantinov: Refactoring of color depth code.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1041 423420c4-83ab-492f-b58f-81f9feb106b5
2006-01-24 12:40:24 +00:00
Peter Åstrand
8a9165589d Applied patch #1367109: prevent strtol overflow
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1034 423420c4-83ab-492f-b58f-81f9feb106b5
2005-12-30 20:32:06 +00:00
Peter Åstrand
e82a259ad2 Using new utility function str_startswith, to get rid of many sizeof:s and hardcoded constants.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1009 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-31 13:00:57 +00:00
Michael Gernoth
45d0bff6d8 Globally include limits.h for PATH_MAX, as this is used in types.h
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@979 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-15 12:06:59 +00:00
Peter Åstrand
75ea7d9148 Applied patch #1247780 (slightly modified) from Brian Chapeau: Session Directory support.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@976 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-08 19:15:57 +00:00
Peter Åstrand
36858922d6 keymapname -> g_keymapname
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@974 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:51:44 +00:00
Peter Åstrand
72055744b9 Created a common xstrdup function.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@973 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:50:15 +00:00
Peter Åstrand
65b28a80a4 Reorganized the automatic selection of keymap: The message about autoselection is not printed if -k is not given.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@972 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:44:10 +00:00
Peter Åstrand
b9abb01d00 Need to include limits.h for PATH_MAX.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@967 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 11:19:06 +00:00
Peter Åstrand
8882a06591 It is now possible to specify keyboard type, subtype and number of functionskeys. From patch #974509, by Dekaino.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@963 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 11:30:53 +00:00
Peter Åstrand
5e5d52ccf4 Autoselecting keyboard map based on current locale. Re-implementation of patch #1068995.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@961 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 09:56:17 +00:00
Peter Åstrand
fa73269ae1 keymapname size if now PATH_MAX, since we now allow arbitrary file
names.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@957 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 08:36:08 +00:00
Peter Åstrand
d9f1f35953 print_disconnect_reason should be static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@943 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 09:29:15 +00:00
Jeroen Meijer
696ea0c4f1 Add alternative mppc decompression code with 64kB history buffer from Vahur Sinijärv, and reenable rdp5 (persistent) bitmap cache 2 (64x64)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@888 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-17 23:14:20 +00:00
Michael Gernoth
87d8eefba0 Enable rdp-compression for all bpps.
Many thanks to Vahur Sinijärv <vahur.sinijarv@cydonia.ee> for
finding the fix.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@885 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-16 11:42:34 +00:00
Michael Gernoth
9b5f896662 We need to include sys/types.h before including sys/socket.h
This broke builds on AIX.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@880 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-04 16:37:19 +00:00
Michael Gernoth
abb049b7d0 allow windowid to be hexadecimal, which is what krdc actually uses...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@870 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-30 19:51:41 +00:00
Michael Gernoth
5a0fa7b5ab Window-placement patch by <gregmhughes@comcast.net>
small modifications by me, to only set the PPosition sizehint, if the
position was specified on the command-line


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@866 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-23 12:25:54 +00:00
Michael Gernoth
99e123f63a indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@860 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-13 17:40:51 +00:00
Michael Gernoth
ec1aa1e6a7 configure test for HAVE_ICONV_H, HAVE_LOCALE_H and HAVE_LANGINFO_H
still no test for HAVE_ICONV


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@856 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-13 13:36:04 +00:00
Michael Gernoth
6b1bacd41c unicode support from Andy Igoshin <ai@vsu.ru>
Currently disabled, need HAVE_ICONV and HAVE_ICONV_H defined to be
used. This should be done with a new configure test.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@854 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-13 13:18:48 +00:00
Jay Sorg
9d61d98434 added var for new polygon and ellipse orders
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@847 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-13 03:29:19 +00:00
Michael Gernoth
ec643e4718 bump version to 1.4.0
change year in files
add missing docu for updated commandline-flags
update changelog


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@827 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-06 21:11:18 +00:00
Michael Gernoth
d825ce6ab0 don't allow rdp-compression for depth > 8
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@824 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-02 10:16:31 +00:00
Peter Åstrand
881f0fe93e Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@800 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-23 13:29:12 +00:00
Michael Gernoth
12623c1e10 add support for specifying the window-position with the -g parameter
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@799 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-18 11:18:49 +00:00
Peter Åstrand
c139c48d97 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@781 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-07 13:00:29 +00:00
Jay Sorg
7f5acf5e64 added option for rdp compression
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@772 423420c4-83ab-492f-b58f-81f9feb106b5
2004-09-11 22:57:42 +00:00
Peter Åstrand
60704a5c00 Disk redirection actually uses share names; not drive letters.
Make sure we truncate share names longer than 8 chars.
Documentation updated.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@746 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 13:50:41 +00:00
Peter Åstrand
336cb6cc1f Now using Autoconf. Old OpenSSL files removed.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@739 423420c4-83ab-492f-b58f-81f9feb106b5
2004-07-31 13:07:41 +00:00
Michael Gernoth
9dc5dc3ae5 add missing newlines in warnings
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@738 423420c4-83ab-492f-b58f-81f9feb106b5
2004-07-30 08:25:54 +00:00
Peter Åstrand
dc156f8fcd Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@737 423420c4-83ab-492f-b58f-81f9feb106b5
2004-07-12 21:07:39 +00:00
Jay Sorg
e2e2ff88aa a few fixes for PBC from Jeroen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@729 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-29 16:22:41 +00:00
Jay Sorg
7f836f0384 added persistant bitmap chaching from Jeroen Meijer, slightly modified
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@724 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-27 17:51:54 +00:00
Jay Sorg
a9cad0b9cf proceed more global vars with g_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@709 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-15 22:17:08 +00:00
Michael Gernoth
ab3dde972b Fix compilation without sound
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@684 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-29 19:40:40 +00:00
Jay Sorg
da391278ec fix the -b switch
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@677 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-26 22:31:22 +00:00
Peter Åstrand
374b8aeba0 Applied disconnect handling patch from Jeroen Meijer
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@675 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-20 07:01:21 +00:00
Peter Åstrand
eb4245b24c Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@650 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-15 20:12:42 +00:00
Michael Gernoth
95d2f76a30 rdp2vnc fixes from Johannes Schindelin <Johannes.Schindelin@gmx.de>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@647 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-10 09:34:52 +00:00
Erik Forsberg
fd67245798 Made it possible to set the client name displayed to the right of the
redirected disks (in Windows explorer) using -r:clientname=<client name>.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@645 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-02 15:34:38 +00:00
Michael Gernoth
b9145c2384 RDP5 Experience patch by Jeroen Meijer <jeroen@oldambt7.com>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@636 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-15 14:49:12 +00:00
Michael Gernoth
697f58a48a XEmbed-patch by Arend van Beelen jr. <arend@auton.nl>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@635 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-13 12:08:18 +00:00
Peter Kallden
1e75df64c2 change to -r sound:local instead of -r sound:on
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@629 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-05 06:39:00 +00:00
Peter Kallden
5d12c1d588 make -r sound behave as the other -r switches, but keep backward compatibility i.e. "-r sound" still does the same
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@628 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-04 13:23:23 +00:00
Peter Kallden
6d63bda2e7 leave sound on server -r sound:remote thanks to cbquillen for finding out.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@627 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-04 12:43:10 +00:00
Michael Gernoth
5fc08fe567 command-line parsing fix by Diego Torres Milano <diego@in3.com.ar>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@609 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-19 22:36:03 +00:00
Michael Gernoth
b540405e17 Make internal backing-store the default && small fix for it
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@608 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-16 20:28:09 +00:00
Peter Åstrand
731c8164a2 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@607 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-15 21:19:28 +00:00
Michael Gernoth
7deb3bbc62 fixes for HP-UX
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@602 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-07 18:47:06 +00:00
Peter Kallden
aa944cdeb5 cleanup of ltoa
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@582 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-27 10:36:49 +00:00
Peter Kallden
00f06c5d5d fixing -r printer syntax using = as a separator to the driver part, i.e. -r printer:mydeskjet=xxx
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@581 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-23 14:37:51 +00:00
Peter Åstrand
a9a863db41 Ran indent-all.sh
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@579 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-23 08:35:52 +00:00
Peter Kallden
3b15cec51b removing the code that set the serial io stuff, and the extra options to comport....
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@577 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-23 06:56:42 +00:00
Peter Kallden
d1e409f1f6 next_arg. slight oversight, when backslashing a needle we need to left shift the string 1 char.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@574 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-22 09:03:06 +00:00
Peter Kallden
457653ccff next_arg modified to support escaping of needles with backslash. ( you may need two dep. on your shell. )
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@570 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 18:17:20 +00:00
Michael Gernoth
00af04fa57 some fixes for solaris compiles.
toupper was redefined to handle strings, now renamed to toupper_str
disk.c has some more problems (it uses statfs and dirfd)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@569 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 18:02:38 +00:00
Peter Kallden
a61eac7b19 redirection of disk, lptport, printer, comport.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@568 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 14:40:40 +00:00
Matt Chapman
f76ace37f2 Bump version number to 1.3.1.
Fix spelling: syncronization -> synchronisation (synchronization would be
okay too, but I use the Australian/British spelling :))


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@566 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 11:08:39 +00:00
Peter Åstrand
454e01b591 Reverted to the old numlock-state code. The numlock sync can be enabled via new option -N
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@551 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-08 12:01:25 +00:00
Peter Åstrand
58c2cbd12a When mixing -f and -g, the last option should take precedence.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@546 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-10 15:09:49 +00:00
Matt Chapman
b19e3d035d -A -> -r sound
Update option listing and documentation for this and some other options.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@519 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-28 05:07:00 +00:00
Michael Gernoth
18e4c6017b added switch (-A) to disable rdpsnd
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@500 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-17 08:23:47 +00:00
Peter Åstrand
c60d7c4f3f Support for specifying geometry in terms of percent of whole screen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@499 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-15 14:32:43 +00:00
Matt Chapman
81f29fd475 Add option to attach to console on Windows 2003.
(thanks to Chris Knight <chris@e-easy.com.au>)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@481 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-09 04:21:19 +00:00
Peter Åstrand
db12b068bb Increased lengths for title, username and password
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@478 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-06 09:37:24 +00:00
Matt Chapman
d3e6c1a157 Preliminary sound support (PCM only).
Based on code from GuoJunBo <guojunbo@ict.ac.cn>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@473 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-30 09:11:08 +00:00
Erik Forsberg
24ee89b5ad Clarified usage message for -E flag.
Fixed flag-collission (-E was used twice, the other -E is now -Q).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@470 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-22 12:33:21 +00:00
Peter Åstrand
d1eeb6b1ae RDP5 is now default. Added -4 option.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@457 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-02 09:32:13 +00:00
Jay Sorg
fb2ce8bcf4 more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@449 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-27 22:51:33 +00:00
Jay Sorg
24d1be278a more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@446 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-21 23:23:15 +00:00
Peter Åstrand
a5735c186b Applied patch from Mike Dawson (slightly modified)
for handling numeric IPv6 addresses.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@443 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-17 07:31:36 +00:00
Jay Sorg
d49e190f92 more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@437 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-01 17:01:58 +00:00
Jay Sorg
de7a67cd41 preceeded more global vars with g_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@436 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-28 21:41:12 +00:00
Peter Åstrand
7ff54cdd90 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@434 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-09 09:18:20 +00:00
Matt Chapman
5b9286e6ea Commit of work in progress on channels (so that other people can hack on
RDPSND), in particular:
* channel layer takes care of virtual channel header
* split X dependent parts out of CLIPRDR, simplified IPC implementation
* initial RDPDR implementation


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@431 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-01 09:31:25 +00:00
Erik Forsberg
e158625b07 Make it possible to disable encryption for all packets except the
packets exchanged in the setup phase.

Seems to work with all encryption levels on my W2003 Server (Beta).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@426 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-19 11:51:18 +00:00
Erik Forsberg
5e323ca0d3 Make rdesktop return 0 only if a RDP_PDU_DISCONNECT was received,
otherwise return 2 (except for usage errors, where it still returns
1).

Documented exit codes of rdesktop in doc/exit_codes.txt.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@423 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-19 07:29:53 +00:00
Erik Forsberg
dc0576d40b Initialize IPC.
Changes after running indent-all.sh


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@415 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 11:11:20 +00:00
Jay Sorg
70de4fa1f9 changes so it compiles with g++(mainly for ports)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@375 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-19 21:36:33 +00:00
Matt Chapman
7cf36760da Move non system dependent part of save_licence back to licence.c.
Clean up overly paranoid code, close files, free memory, etc.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@366 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 13:04:15 +00:00
Matt Chapman
33ee95a206 Fix some instances of out_uint{16|32} with non-zero value (should be
out_uint{16|32}_{le|be}


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@364 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 08:19:15 +00:00
Erik Forsberg
fcfd8d4b90 Support for the -5 flag to rdesktop, indicating the experimental RDP5
support should be used.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@349 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:18:13 +00:00
Peter Åstrand
b5753d0a87 Added rdp2vnc support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@332 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-20 12:14:13 +00:00
Peter Åstrand
f139915dd7 Online help for -S.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@328 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:07:29 +00:00
Peter Åstrand
a1c5132f9a New option for running single applications maximized
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@327 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:03:51 +00:00
Peter Åstrand
5ab5ba17eb Moved save_licence/load_licence back to rdesktop.c
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@324 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-11 11:31:04 +00:00
Peter Åstrand
0f0bb5f281 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@317 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 12:58:51 +00:00
Peter Åstrand
2dd0b246fb Moved load_licence/save_licence to licence.c. Removed SAVE_LICENCE cond.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@316 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 12:56:34 +00:00
Jay Sorg
15a7e6e05b added 15 and 24 bit server options
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@314 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-09 01:38:07 +00:00
Jay Sorg
4b26f4fc6b 16bit
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@308 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-04 05:32:13 +00:00
Matt Chapman
799526bb95 Wah. 2003 already.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@303 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 11:59:27 +00:00
Matt Chapman
01be712432 Add a warning function, change some errors to warnings, improve a
couple of error messages (not sure whether scewed was meant to be skewed
or screwed :))


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@296 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-28 12:27:28 +00:00
Peter Åstrand
6006a962ee Fix for empty usernames
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@288 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-16 13:48:02 +00:00
Peter Kallden
c439e6cfcc save licence change, based on Peter Fales and Mrs. Brisbys discussion.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@279 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-26 14:39:50 +00:00
Peter Kallden
ba91c632d4 owncolmap reintroduced, basically the same code, but with a switch -C. didn't use the -v switch as in the patches. I believe it is confusing and should be reserved for -version information. Other than that I can say that the code does not work as it does in the patches... haven't found what's wrong with it. bit shifting?
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@278 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-26 10:09:14 +00:00
Peter Åstrand
daf1ac6752 Support for extended WM hint _NET_WORKAREA, via -g workarea
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@262 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 18:12:49 +00:00
Peter Åstrand
1ad250fcba Support for hiding WM decorations
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@261 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 15:37:20 +00:00
Peter Åstrand
a3ef98f0b1 Indent fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@258 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 15:30:12 +00:00
Matt Chapman
95e1176075 Change default keymap us -> en-us.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@239 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-24 08:21:33 +00:00
Peter Åstrand
5d2caf3e46 Increased shell max length to 128.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@237 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-23 14:55:52 +00:00
Matt Chapman
8ced285b63 Make title -T in line with xterm, xemacs, etc.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@222 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-11 05:13:19 +00:00
Matt Chapman
64fecfde7d I've been convinced that accepting server[:port] is the right way to do
things (less options to remember, and it's the syntax accepted by the MS
clients).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@221 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-11 04:00:32 +00:00
Matt Chapman
05de38d226 Improve security of random number generation (support EGD, use MD5
in our poor man's version) - Jacco de Leeuw <jacco2@dds.nl>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@219 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-10 07:25:31 +00:00
Matt Chapman
0cb2e75135 Remove -l (Microsoft have long since fixed the bug that made it work).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@213 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-06 13:57:39 +00:00
Matt Chapman
7f21b7e693 Remove -P (askpass program)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@212 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-06 13:30:30 +00:00
Matt Chapman
019be5adf0 -p - now reads from stdin rather than using getpass (/dev/tty)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@210 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-04 14:28:14 +00:00
Matt Chapman
f418fe1a5c Reinstate a cleaned-up version of the old xwin_toggle_fullscreen - I indeed
can't get it working reliably with all window managers without creating a
new window.
Move remaining non-window dependant code into ui_init/ui_deinit so that
xwin_toggle_fullscreen can do ui_destroy_window/ui_create_window.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@187 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 06:09:09 +00:00
Peter Kallden
d409df76ab security: when supplying password as arg it is overwritten in the ps table with XXX. (On BSD based platforms this does nothing.)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@170 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-17 09:20:13 +00:00
Matt Chapman
4cc46cbe11 Send packet dumps to stdout.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@168 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-17 07:27:49 +00:00
Matt Chapman
9d4c3b2872 Now that we have ui_init move rounding of geometry there (it's X-specific).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@159 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-15 12:42:26 +00:00
Matt Chapman
4cefa21dd4 #ifdef out licence save code. I don't think it's really necessary; it's
always been broken and AFAIK no-one has complained.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@158 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-15 12:36:55 +00:00
Matt Chapman
b8aa6678ed Eliminate noise in output - only print version/copyright in usage(),
make connecting/disconnecting message a DEBUG.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@121 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-14 11:54:11 +00:00
Matt Chapman
6d5e7121b7 Move non-window-related initialisation to ui_init.
All functions after ui_init can now assume display and other globals are valid.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@120 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-14 11:48:44 +00:00
Peter Åstrand
79ecb2eaf3 Small indent fix.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@113 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-11 07:54:21 +00:00
Peter Åstrand
434d9cbe94 Replaced all printf with fprintf(stderr)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@110 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-01 12:03:33 +00:00
Peter Åstrand
2054cd2388 Added -w option for setting title
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@106 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-01 11:27:58 +00:00
Matt Chapman
fd914b8cb8 Make sure width is a multiple of 4 (previous version in ui_create_window
was getting done too late, after connection).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@102 423420c4-83ab-492f-b58f-81f9feb106b5
2002-08-29 14:18:24 +00:00
Jay Sorg
a7c00fc2e6 toggle full screen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@99 423420c4-83ab-492f-b58f-81f9feb106b5
2002-08-24 20:04:56 +00:00
Peter Åstrand
4589a877f0 Added -P parameter: Get password from external program (likeSSH_ASKPASS)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@95 423420c4-83ab-492f-b58f-81f9feb106b5
2002-08-09 09:11:01 +00:00
Peter Åstrand
4f8b0bc47a Changed max line length to 100
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@81 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:18:48 +00:00
Jay Sorg
7a1b799c9d added ui_init for pre connect inits like fullscreen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@80 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 01:57:39 +00:00
Peter Åstrand
12619def97 Removed extra newline after -t option.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@78 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-29 20:35:13 +00:00
Peter Åstrand
f1e223725f Applied patch from Bob Bell for -K option
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@75 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-29 20:16:22 +00:00
Peter Åstrand
2dd151bd20 Merged new keysym-based keyboard handling (from alt. CVS repos)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@65 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-18 18:28:12 +00:00