Commit Graph

1500 Commits

Author SHA1 Message Date
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
6920eadf7f Applied patch to support RD_STATUS_DIRECTORY_NOT_EMPTY when
recursive deletion of directory. This fixes bug 2906541 and
patch originates from 2909831.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1606 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-27 12:11:35 +00:00
Henrik Andersson
1be5dbdf81 Applied patch from tracker patched ID: 2812158 which implements
the FileFsFullSizeInformation which solves the read-only issues
with disk redirections on Windows 7 and Windows 2008R2.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1605 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-27 07:40:26 +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
Henrik Andersson
64e4fa886a Cleanup of previous commit that introduced
unrelated changes into commit by mistake.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1603 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-20 13:14:25 +00:00
Henrik Andersson
7dc38dcca0 Fixed a typo.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1602 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-20 12:18:41 +00:00
Michael Gernoth
1f07b252ad newer openssl versions use EVP_PKEY_get1_RSA for accessing the public
key and do not like direct access to epk->pkey.ptr


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1601 423420c4-83ab-492f-b58f-81f9feb106b5
2010-11-12 16:05:59 +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
Pierre Ossman
1da6ed30e5 Some operations consist of just the control code, no data.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1599 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-22 13:06:50 +00:00
Pierre Ossman
b82d367a4b Translate the response to control code 3400 as it contains embedded control
codes in the local encoding.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1598 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-22 13:06:16 +00:00
Pierre Ossman
91af7ba5fc Let bogus control codes through with a warning, in case it might work
anyway.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1597 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-22 13:05:26 +00:00
Pierre Ossman
7e759ced83 Add copyright notice.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1596 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-14 07:36:52 +00:00
Pierre Ossman
1ac2cd144e Control codes to SCardControl() are platform dependent so we need to do
some translation before passing them on.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1595 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-14 07:35:55 +00:00
Pierre Ossman
4635dfc148 Remove undocumented voodoo in SCardGetStatusChange() as it causes the
system version to return immediately, causing CPU intensive loops.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1594 423420c4-83ab-492f-b58f-81f9feb106b5
2010-06-14 07:35:00 +00:00
Pierre Ossman
a22d20b871 Handle resets of the server sound system more gracefully by resetting our
state if we see an unexpected negotiate request.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1593 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 13:54:46 +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
174ca2cbea Added fr-bepo keymap, from tracker 2880521
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1591 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 12:51:14 +00:00
Peter Åstrand
5aceabe84d Applied Patch 2936021:
- [Alt]+[Hankaku_Zenkaku/Kanji] key didn't work. (should toggle IME)
- [Eisu_toggle/Caps_Lock] key acts wildly.
  Before the fix, the key behaved as unconditional Caps Lock toggle
  as in US keyboards.
  In Japanese 106 keyboard, this key should only toggle Caps Lock on shift.
  Plain keypress should just tell IME to transit to alnum mode.
- [Hiragana_Katakana/Romaji] key didn't work.
- Windows key didn't work.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1590 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-09 12:47:29 +00:00
Michael Gernoth
360b4a3faa fix two problems found by clang static analyzer
secure.c:  Dereference of null pointer
xkeymap.c: Pass-by-value argument in function call is undefined

both seem to be noncritical, as sec_recv is never called with a null
pointer and ensure_remote_modifiers only accesses initialized fields


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1589 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-07 11:39:29 +00:00
Peter Åstrand
d9f454b2ad Added test case for 32 bit apps on 64 bit system
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1580 423420c4-83ab-492f-b58f-81f9feb106b5
2010-03-11 09:13:58 +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
aab770d625 Indented
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1562 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-27 07:40:47 +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
f749dbfef4 Avoid a few more compile warnings. This file should now build without
warnings on 32 bit platforms, when debugging is not enabled. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1560 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 10:24:26 +00:00
Peter Åstrand
073b9726ff Indented
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1559 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 10:20:06 +00:00
Peter Åstrand
564175719c Need two more smart card prototypes, to avoid warnings.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1558 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-26 10:13:53 +00:00
Peter Åstrand
42f4ca28d5 Committed load balancing fixes from Daniel Drown. Hopefully fixes bug
#2845414.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1557 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-21 09:24:40 +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
c47cb3018d Since the backing store is created in ui_create_window, free it in
ui_destroy_window, for symmetry. This is also necessary when
reconnecting with a different size, since the backing store size needs
to be changed.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1555 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-18 10:06:54 +00:00
Peter Åstrand
cf7d593ff8 Adjusted incorrect memcpy line in ewmh_del_icon, as suggested by
#1970489. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1554 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-18 08:02:24 +00:00
Peter Åstrand
19f88c925a Applied rdesktop-x86_64-crash-fix.patch from #1970489.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1553 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-18 07:53:37 +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
38e38e90a0 Applied:
[PATCH] _NET_WORKAREA is interpreted wrong on 64-bit machines (-g workarea)



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1550 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-14 15:21:45 +00:00
Peter Åstrand
35404b22a3 Update the license for uiports/vnc to GPLv3.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1549 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-14 11:48:12 +00:00
Peter Åstrand
28ba7a082a g_wnd is not a pointer. Use 0 instead of NULL to avoid warnings.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1548 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-13 16:22:35 +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
9a926834ff Improve robustness: Make sure we don't act on window events for
windows that no longer exists. (This shouldn't happen with the current
code base, but will be a problem when multiple main windows and
created and destroyed through the process lifetime.)



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1546 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-13 14:53:43 +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
f284a915ad Include set_keypress_keysym and reset_keypress_keysym to avoid gcc
warnings when building xwin.c. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1544 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 15:22:33 +00:00
Peter Åstrand
8c645ed401 Avoid gcc warning when using DEBUG; RD_HBITMAP is really a pointer.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1543 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 15:19:00 +00:00
Peter Åstrand
add482fcef Avoid gcc warning when using DEBUG; RD_HBITMAP is really a pointer.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1542 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 15:16:31 +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
46499078e1 Need to include ssl.h now that we are using ssl_hmac_md5.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1540 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 14:52:04 +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
adbb524e13 The background_pixel was specified twice, both as black and
white. Leave it as black. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1537 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 09:58:16 +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
91f3b6151f Changed style of copyright header to match the other files
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1533 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:06:15 +00:00
Peter Åstrand
5dbe5f0a05 Corrected license header
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1532 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:03:31 +00:00