Commit Graph

1870 Commits

Author SHA1 Message Date
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
Henrik Andersson
11dcd976f9 Fixes bug with mouse scroll handling.
X mouse scroll events comes as mouse button press and release
events. On the windows sider the release is interpreted as an
additional scroll down event.

Thanks goes to David Fries for this patch.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1699 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-22 10:07:14 +00:00
Henrik Andersson
5627a47115 Add missing newline for warning message.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1698 423420c4-83ab-492f-b58f-81f9feb106b5
2013-03-18 12:04:38 +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
972832c39f Added documentation stub for new protocol command
SPAWN that spawns a new application.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1696 423420c4-83ab-492f-b58f-81f9feb106b5
2013-02-05 12:23:57 +00:00
Henrik Andersson
a65f71bb58 Updates to the man page with changes regarding changes with
arguments and theire meaning with the nes seamless connection
sharing feature.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1695 423420c4-83ab-492f-b58f-81f9feb106b5
2013-02-05 11:40:36 +00:00
Henrik Andersson
b9a8f97955 Fix the ctrl sockets storage path to be XDG complient.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1694 423420c4-83ab-492f-b58f-81f9feb106b5
2013-02-05 07:48:55 +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