Commit Graph

260 Commits

Author SHA1 Message Date
Henrik Andersson
adbb6cf0fc Run indent-all script.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1721 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 12:57:00 +00:00
Henrik Andersson
e6b10f6bcb Added tcp_ui_run() to prevent ui_select() push data on transport
which corrupts the stream and prevents a SSL reconnect to work.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1720 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 12:51:27 +00:00
Henrik Andersson
cca2aefefe Make sure to reset encryption to initial value.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1715 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 04:01:10 +00:00
Henrik Andersson
cd7a7342cb Silence some error spamming when rdesktop is in reconnect loop.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1713 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-14 12:54:38 +00:00
Henrik Andersson
2374054495 Do not report each reconnection retry every 4 seconds, just log
that we entered reconnction loop and log errors.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1712 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-13 12:32:29 +00:00
Henrik Andersson
dfb3f21069 Fix indentation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1708 423420c4-83ab-492f-b58f-81f9feb106b5
2013-04-12 08:06:01 +00:00
Henrik Andersson
eced6ca821 Reconnect upon network failure, retry as long the autoreconnect
cookie is valid.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1707 423420c4-83ab-492f-b58f-81f9feb106b5
2013-04-12 06:46:07 +00:00
Henrik Andersson
da3dcb8fbe Remove the use of getopt_long() introduced in previous commit.
Replace it with normal getopt() as we had before to prevent breaking
build of rdesktop on other platforms like solaris.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1706 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-25 15:56:32 +00:00
Henrik Andersson
d1e8fdc90a Initial support for CredSSP smartcard authentication.
- Add implementation of TSSmartCardCreds and TSCSPDataDetail for
  CredSSP protocol.
- Add handling of long opts for getopt()
- Added 4 new long opts for providing information to CredSSP which
  is required for smartcard credentials.
- Updated manual with information about the new arguments.

If smartcard authentication is request by commandline "-i" option,
and no CredSSP smartcard options is provided, rdesktop will
negotiate to use SSL and warn.




git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1705 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-25 13:01:38 +00:00
Henrik Andersson
70d8c071c1 Add missing format string to snprintf's.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1703 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 12:38:19 +00:00
Henrik Andersson
d584b2fa3f Make sure that CredSSP is not used for smartcard SSO.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1697 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-18 11:56:37 +00:00
Henrik Andersson
c56a8c180c Changes the approach of how seamlessrdpshell is used and
breaks backward compabilities with old commandline arguments.

The -A argument does now require an string to seamlessrdp shell,
and argument -s has now a splitted meaning, in seamless mode it
does specify a application to start, and in standard mode it works
just like it worked before.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1692 423420c4-83ab-492f-b58f-81f9feb106b5
2013-01-25 14:10:11 +00:00
Henrik Andersson
6715013377 Missed to add 't' to getopt() arguments in previous commit r1689.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1690 423420c4-83ab-492f-b58f-81f9feb106b5
2013-01-21 13:33:41 +00:00
Henrik Andersson
be93803129 Intitial implementation of seamless connection sharing:
- Implementation of ctrl functionality were slaves can call
  a method into existing master process, more information is
  found in doc/ctrl.txt

- Implementation of new seamless SPAWN functionality so which
  is used by the ctrl to spawn processes in a seamless rdp session
  out of process.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1689 423420c4-83ab-492f-b58f-81f9feb106b5
2013-01-21 12:28:14 +00:00
Henrik Andersson
15e4518b13 Add support to use password argument as pin when logon
using smartcard.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1687 423420c4-83ab-492f-b58f-81f9feb106b5
2012-12-20 16:33:55 +00:00
Henrik Andersson
9f174ea864 Added check if socket is connected to prevent sending disconnect
sequence to a closed socket.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1681 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-22 13:38:35 +00:00
Henrik Andersson
0f5824d414 Rename of internal ssl_ wrapper functions/defines to
rdssl_ to prevent nameclashing with openssl library now
when we link against ssl library.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1665 423420c4-83ab-492f-b58f-81f9feb106b5
2012-07-02 11:36:39 +00:00
Henrik Andersson
67e0c58394 Use sizeof() to prevent mixups for previous commit.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1661 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-19 06:54:23 +00:00
Henrik Andersson
eed9bc7210 Fixes a bug were license filename differs from load/save license that
was introduced with commit 1648 and made rdesktop to always request
a license and never present the one stored.

Also fixed a potential issue with hash string length that did not
have room for an \0 after the hash stringify conversion.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1660 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-19 06:01:10 +00:00
Henrik Andersson
c44025aa18 Added support for protocol negotiation, this is a part of
adding Enhanced RDP Security support to rdesktop and brings
support for TLSv1 tunnel functionality.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1659 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-15 05:16:20 +00:00
Henrik Andersson
cdce9aae75 Run indentation script.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1658 423420c4-83ab-492f-b58f-81f9feb106b5
2012-01-16 06:35:13 +00:00
Henrik Andersson
be90d40a34 Fixed issues with a too small buffer used for output of
sec_hash_sha1_16() which introduced crashes on solaris,
sha1 need 160bit output buffer.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1648 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-25 10:03:03 +00:00
Henrik Andersson
8a52bf3a9b - Change licensestore to XDG directory ~/.local/share/rdesktop/licenses
- Added helper functions for SHA1 hash to hash the hostname used for
  licenses filename to hide information of what host user X connects 
  from in a infrastructure with NFS mounted home directories.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1644 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-21 10:51:08 +00:00
Peter Åstrand
c5415ded44 Try to fix 3428380 - session redirection broken in 1.7.0. We must not
call sizeof or strlen on a new dynamically allocated string. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1639 423420c4-83ab-492f-b58f-81f9feb106b5
2011-10-26 10:53:39 +00:00
Peter Åstrand
da08af3c5a Update copyright year in usage string, add "et al.".
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1622 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:30:28 +00:00
Peter Åstrand
e0ca09a189 Use PACKAGE_VERSION from Autoconf instead of hardcoded VERSION define.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1621 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:28:31 +00:00
Peter Åstrand
b638882347 Include emails in copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
27068f53f8 Updated the copyright notices for the things we have been working on.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1612 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 08:55:42 +00:00
Peter Åstrand
133d9cf53a Ignore SIGPIPE, since we are using popen when printing. Otherwise, the
entire rdesktop application might exit just because lpr was quick to
terminate. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1610 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-12 12:02:25 +00:00
Henrik Andersson
161b4f215a - Remove force flag from rdpdr_init()
- Changes to always start the rdpdr channel
  due assumtions that this channel is supposed
  to always be up and running.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1607 423420c4-83ab-492f-b58f-81f9feb106b5
2011-01-03 13:12:17 +00:00
Henrik Andersson
9dd6bdab95 Fix for sound playback in Windows 2008R2 which requires
the rdpdr channel to be initiated. 
RDPEA nor RDPBCGR mention a relation between audio and
the rdpdr channel.

See. support request #2717082



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1604 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-20 13:42:51 +00:00
Peter Åstrand
b0fea17d38 Increase domain name length to 255 chars. Applied patch from bug 2883075.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1600 423420c4-83ab-492f-b58f-81f9feb106b5
2010-08-26 08:57:52 +00:00
Peter Åstrand
42928d7ae1 Properly reset sound subsystem when reconnecting due to screen size
change (RandR). 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1592 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 13:12:31 +00:00
Peter Åstrand
d9c9183dc7 Only call scard_reset_state() if building with scard support.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1563 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-27 07:41:14 +00:00
Peter Åstrand
60e82d86ef Reset smart card state before reconnect. This fixes stability problems
when using smart cards in conjunction with RandR. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1561 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 12:23:53 +00:00
Peter Åstrand
6ee9faeffc Added RandR support: If the specified geometry depends on the screen
size, and the screen size is changed, rdesktop will automatically
reconnect using the new screen size. This feature uses the previously
implemented autoreconnect feature. 

The new UI function ui_seamless_end() has been introduced, to make it
possible to resize in seamless mode as well. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1556 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-20 09:59:47 +00:00
Peter Åstrand
65af3d5826 Corrected last patch, which broke SeamlessRDP. We should update
g_sizeopt to 100%; not g_width. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1552 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-14 16:14:23 +00:00
Peter Åstrand
6b7a66eebf We have been handling the special "relative" session sizes (workarea
and percent of screen) by abusing the g_width variable. However, this
is only works once, since g_width in this case is calculated using
itself. This will not work if we want to support xrandr. Besides, it's
quite ugly.

The patch changes this so that a separate variable, g_sizeopt, is used. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1551 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-14 15:53:24 +00:00
Peter Åstrand
5b75525080 Re-wrote top main loop. The patch for session directory / load
balancing redirection made it *way* too complicated. We shouldn't
really need two extra state variables in addition to g_redirect. The
current approach also does not support future features such as
automatic reconnection in case of network problems. 

The new loop should be functionally equivalent to the previous one,
though it hasn't yet been tested with a load balancing server.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1547 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-13 16:07:29 +00:00
Peter Åstrand
ea2bdbc96b This patch is a re-work of patch r1538. One one hand, the plain old
behaviour of setting the session size in ui_init is not going to work,
due to xrandr, as pointed out in r1538. However, the approach
implemented in this revision doesn't work either: When the window is
created before the connection, this means that as soon as X11 events
are recieved, this is going to trigger RDP transmissions. For example,
a call to reset_modifiers_keys. But if the RDP connection is not
ready, the WTS is not prepared to handle such data. We must wait with,
for example, keyboard input until the connection is READY. OTOH, we
can't just ignore those X11 events; that might lead to that we are not
sending information that we need to send. 

So, it is actually better to wait with creating the window until we
have been connected. An additional advantage of this is that for the
load balancing / session directory case, there's no risk of confusion
of which RDP connection we are actually sending data to. 

The previous behaviour of creating the window after we have been
connected has been restored.

Since we still need to set connection data (currently screen size) on
a per connection basis, we need to create a new UI function for this.

Non-X11 backends need to implement this new function. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1545 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-13 13:51:06 +00:00
Peter Åstrand
0983e771c8 Only try to use automatic reconnect if we have earlier recieved the
reconnect random. It seems to work anyway, but let's take care.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1541 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 15:00:49 +00:00
Peter Åstrand
1b4c36a45f Implemented support for "Client Auto-Reconnect". This means that the
client can re-connect using a cookie, instead of going through the
normal authentication. This patch saves those cookies, and uses them
during logon. 

Note that this feature is currently unused. It remains to add support
for, say, detecting when the TCP connection has gone done and restart
a new one. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1539 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 10:34:38 +00:00
Peter Åstrand
d0327a9989 Moved code that determines desktop size from ui_init to
ui_create_window. ui_init is only called once during the execution,
but the size of the screen can change, for example, when resizing
using Xrandr. 

Note however that this also means that ui_create_window must be called
before rdp_connect. rdesktop.c has been modified accordingly. One
additional advantage is that you will get a window during the
connection phase, which gives the user better feedback in case the
connection takes time. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1538 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 10:19:35 +00:00
Peter Åstrand
281d7c9f06 Changed license to GPLv3
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
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