Commit Graph

1980 Commits

Author SHA1 Message Date
Henrik Andersson
e6f48a19e7 Fixes a few problems with the CS keymap.
See issue #138 for more information.

Thanks to Jaroslav Jiricka and Petr Klíma 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1754 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-22 12:37:11 +00:00
Henrik Andersson
dfd5611837 Bump version to 1.8.1post
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1753 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-18 08:27:39 +00:00
Henrik Andersson
9d5aa0f4a1 Bump version to 1.8.1
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1751 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-18 08:22:51 +00:00
Henrik Andersson
0cdc31e651 Typo fixed in configure.ac, fixes bug #374
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1750 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-18 07:44:05 +00:00
Henrik Andersson
0cbef220a6 Fixes a bug where rdesktop steals CPU cycles.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1749 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-14 12:31:42 +00:00
Henrik Andersson
697c0f190d Initialize deactivate variable and make sure we check it to
control reconnection logic.

When hitting cancel at the logon dialog, server will send a
deactivate PDU and close the socket the hard way. This behaviour
introduce a problem when using SSL connection were rdesktop
detected a network error and entered reconnection loop.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1748 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-27 08:18:34 +00:00
Peter Åstrand
2ea8e8e5d7 When using SeamlessRDP with broken window managers, we hade a timeout
of 1 second for ConfigureNotify. Lower this to 0.5 seconds. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1747 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-19 14:45:22 +00:00
Peter Åstrand
7945532bfe Similar to SeamlessRDPshell commit 1745. Avoid issues with topmost
("_NET_WM_STATE_ABOVE") windows relating to non-topmost windows. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1746 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-19 14:39:08 +00:00
Henrik Andersson
8bc905eb5c Added the 4 new exit codes to the man page.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1743 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-19 08:38:07 +00:00
Henrik Andersson
d74b2d4278 Added 4 new disconnect reasons with corresponding return code.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1742 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-17 14:48:56 +00:00
Peter Åstrand
4bc4e5b473 Correct build warning caused by commit 1732.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1741 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-17 13:32:16 +00:00
Peter Åstrand
a049f3cc81 Removed unused variable.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1740 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-17 13:27:31 +00:00
Peter Åstrand
279cfc334d Fix SeamlessRDP bugs related to maximized Windows:
* Fix ewmhints.c:ewmh_get_window_state was not working on 64 bit
  platforms. 

* In EWMH, HIDDEN overrides MAXIMIZED_VERT/MAXIMIZED_HORZ. 

* Finally, if we receive a POSITION when window is maximized or
  minimized, it's wrong to simply ignore the POSITION and simply set
  the local values to what the server gave us. Instead, we are sending
  back a new POSITION. 




git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1739 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-17 13:11:22 +00:00
Peter Åstrand
3dbb64050d Ran indent-all
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1738 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-16 12:45:47 +00:00
Peter Åstrand
704ff6a3be Minor warning message fix.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1737 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-16 12:45:24 +00:00
Peter Åstrand
a30be70a6b Make sure that the style is the same with both indent 2.2.10 and
2.2.11, wrt !!. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1736 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-16 12:44:37 +00:00
Peter Åstrand
bce8ca3baa Corrected DEBUG_SEAMLESS statement; use same style for both "got" and
"sending" messages. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1735 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-16 12:21:44 +00:00
Henrik Andersson
a90ea17abb Test if SSL_OP_NO_COMPRESSION is defined before use.
OpenSSL < 0.9.9 does not support this option, see upstream
commit 566dda07ba16f9d3b9774fd5c8d526d7cc93f179 for reference.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1734 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-29 14:27:25 +00:00
Henrik Andersson
69b6171fd1 Remove undocumented fallback codeblock which existence is not motivated.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1733 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-29 13:27:35 +00:00
Henrik Andersson
58363c5351 - Added rd_create_ui() helper function
- Make sure that ui is created if processing demand active PDU
- Make sure we use precached bitmap cache again

This fixes bugs #367 and #368



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1732 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-14 13:49:45 +00:00
Henrik Andersson
e0cfeaa585 Bitmap cache precaching is broken, tries to create bitmaps without window
which results in a sigsegv.

Workaround for bug #367



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1731 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-14 13:23:01 +00:00
Henrik Andersson
a224721795 Zero memory of format struct to prevent sigsegv.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1730 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-14 12:56:52 +00:00
Henrik Andersson
982fd425a3 Fixes a issue with 64bit portability.
Fix for bug #366



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1729 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-12 09:52:08 +00:00
Henrik Andersson
be5ae57fe0 Return a NULL value as expected.
Partly fix for bug #366



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1728 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-10 16:16:55 +00:00
Henrik Andersson
9de4e9eda5 Bump trunk version to 1.8.0post
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1727 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-09 08:55:09 +00:00
Henrik Andersson
d7b1cbb838 Bump version to 1.8.0
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1725 423420c4-83ab-492f-b58f-81f9feb106b5
2013-08-09 08:13:46 +00:00
Pierre Ossman
e0766aae22 Don't screw up the attribute ID for SCardGetAttr(). It
worked by pure luck in some cases, and failed in the rest.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1724 423420c4-83ab-492f-b58f-81f9feb106b5
2013-07-05 14:32:43 +00:00
Pierre Ossman
72dd2ac5be Do a proper parsing of the ReaderState structure. We did not
handle NULL szReader properly previously.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1723 423420c4-83ab-492f-b58f-81f9feb106b5
2013-07-05 11:44:03 +00:00
Henrik Andersson
cab6380beb Do not do SSL_Shutdown if we have triggered a network error,
this will result in segfault in ssl.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1722 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-27 10:43:34 +00:00
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
dc3be1486d Bring back reset of g_ssl on reset_state()
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1719 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 11:10:24 +00:00
Henrik Andersson
8200b5bbd4 Move g_ssl cleanup from reset_state() and only setup one ssl context per process.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1718 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 10:50:39 +00:00
Henrik Andersson
8ba120fdbd SSL library initialization is not reentrant, lets do it once.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1717 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 09:36:11 +00:00
Henrik Andersson
ae7c48a1c0 Set g_sock at correct point and remove from reset_state()
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1716 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-20 09:29:21 +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
7d2f65002a Make sure we don't spam log with failed send() messages if we
already have detected a network failure.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1711 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-13 11:01:55 +00:00
Henrik Andersson
d18def31e3 Reconnect with plain RDP if server cert is not configured.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1710 423420c4-83ab-492f-b58f-81f9feb106b5
2013-04-18 07:11:45 +00:00
Henrik Andersson
6a6c3c8ab7 Make the cssp streambuffers dynamically grow instead of the static
size of 4096 which proved to be a problem.

Thanks to David Fries for patches.




git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1709 423420c4-83ab-492f-b58f-81f9feb106b5
2013-04-17 14:06:53 +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
d0bf92a9c3 Zero out format struct before use.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1704 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 12:47:03 +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
2e1dca75f8 Fix indentation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1702 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 10:20:11 +00:00
Henrik Andersson
5b1e084fe2 Fix crash when a invalid device is received in rdpdr_process_irp.
Thanks goes to David Fries for the patch.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1701 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 10:17:11 +00:00
Henrik Andersson
81641e5b4d Fixes a memoryleak in rdpdr_process_irp upon error.
Thansk goes to David Fries for patches.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1700 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 10:11:00 +00:00