Commit Graph

1743 Commits

Author SHA1 Message Date
Henrik Andersson
78a4f41f48 Fix sigsegv while using credssp and kerberos without
specifying domainname as argument.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1824 423420c4-83ab-492f-b58f-81f9feb106b5
2014-08-27 12:15:21 +00:00
Henrik Andersson
d70b65edc7 Revert of commit 1794.
Fixes regression with "disconnect: Invalid licensing message."



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1823 423420c4-83ab-492f-b58f-81f9feb106b5
2014-08-18 07:47:07 +00:00
Henrik Andersson
46a3684c27 Document the new seamless protocol command PERSISTENT
and implement the usage of the new command in rdesktop.

If a seamless command is specified the persistent mode
of the session will be changed to non-persistent.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1822 423420c4-83ab-492f-b58f-81f9feb106b5
2014-07-03 10:42:04 +00:00
Henrik Andersson
2ceb56e0d4 Added seamless_reset_state() and use it whenever a
new window is created. This fixes issues with seamless
protocol parser between reconnects.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1820 423420c4-83ab-492f-b58f-81f9feb106b5
2014-07-02 08:25:07 +00:00
Henrik Andersson
d0b0e731d9 Fix compile error introduced in previous commit.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1819 423420c4-83ab-492f-b58f-81f9feb106b5
2014-07-02 08:05:30 +00:00
Henrik Andersson
07008abc10 Make sure to always add RDP5_NO_CURSOR_SHADOW even
when specifying that nothing should be disabled in
performance flags.

This is a workaround for rdesktop not supporting
alpha cursors.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1818 423420c4-83ab-492f-b58f-81f9feb106b5
2014-07-01 06:17:02 +00:00
Henrik Andersson
a87ed59ad4 Updates all constants for TS_INFO_PACKET flags to
much names in specification.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1817 423420c4-83ab-492f-b58f-81f9feb106b5
2014-06-27 13:49:19 +00:00
Henrik Andersson
1c97aa5be1 Fix constant naming and enabled windowskey by default.
Fixes bug #384

Thanks to Alexander Zakharov for pinpointing
the core issue.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1816 423420c4-83ab-492f-b58f-81f9feb106b5
2014-06-27 13:15:24 +00:00
Henrik Andersson
6ef81653f7 Add keyboard layout US international with dead keys.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1815 423420c4-83ab-492f-b58f-81f9feb106b5
2014-06-26 08:13:29 +00:00
Henrik Andersson
b4ac3c4182 Clear g_seamless_spawn_cmd when used.
Fixes problem were a new seamless application is spawned
upon a reconnection due to resize or network failure.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1809 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-28 07:56:23 +00:00
Henrik Andersson
0fe7375197 Bump version to 1.8.2post
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1808 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 15:19:07 +00:00
Henrik Andersson
0ac32bd06c Bump version to 1.8.2 and updated ChangeLog
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1806 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 14:37:02 +00:00
Henrik Andersson
d3c4cb3535 Run indentation script.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1805 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 14:34:45 +00:00
Henrik Andersson
35ed85c03b Reducing hash and keymap hashtable slots from 65535
to 127 which will reduce memory footprint.

Tested using a few keymaps and With 0x7f there were
max 5 collisions in a slot which is good for
performance. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1804 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 11:24:59 +00:00
Henrik Andersson
2a76ef7b53 Handle trailing whitespace in a keyname sequence.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1803 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 10:52:39 +00:00
Henrik Andersson
cb06fe1863 Applied slightly modified patch #220 that fixes
hash collisions with keysyms.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1802 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 10:43:03 +00:00
Henrik Andersson
e597ef4e90 Make sure to use rdp_out_unistr() when writing strings
to streams in CredSSP. (The other part of bug #383.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1801 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 07:49:52 +00:00
Henrik Andersson
77ec7d1128 Use rdp_out_unistr to fill in string in tspasswordcreds
packet. This fixes bug were login fails due to non-ASCII
characters in username or password.

Fixes bug #383.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1800 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 07:40:17 +00:00
Henrik Andersson
a563c49723 Use correct types for reading cursot hotspot and
clamp the point into cursor boundingbox.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1799 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-20 06:27:09 +00:00
Henrik Andersson
f000599925 Fix typo.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1798 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-13 14:36:18 +00:00
Henrik Andersson
4a4d0a9160 Updated comment to be more clarifying.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1797 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-13 14:34:23 +00:00
Henrik Andersson
8c7c645285 Reintroduce special caps flag 0x00800000 which got
removed in commit r1791.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1796 423420c4-83ab-492f-b58f-81f9feb106b5
2014-05-13 14:03:08 +00:00
Henrik Andersson
a1f8856484 Make password variable global and clear it in correct place.
This fix a bug where redirection using CredSSP fails to SSO
due to wrong password sent to server and asks for a correct one.
The source to this issue was that the password was zeroed before
the actual redirection is handled.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1795 423420c4-83ab-492f-b58f-81f9feb106b5
2014-04-24 12:02:40 +00:00
Henrik Andersson
708c3861f1 Remove process of packets in rdp_connect.
The process of packets in rdp_connect assumes that the
first packets are demand active to set g_rdp_shareid which
is not true. In case when CredSSP+Kerberos is in use an
enhanced redirection PDU packet is sent before the demande
active PDU.

This fixes the problem with rdesktop silently exists in
the case above.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1794 423420c4-83ab-492f-b58f-81f9feb106b5
2014-04-23 06:11:55 +00:00
Peter Åstrand
a8e9328c9f 0x35 in dutch layout should be for minus; not hyphen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1793 423420c4-83ab-492f-b58f-81f9feb106b5
2014-04-15 11:28:00 +00:00
Henrik Andersson
f545366312 Add no_cursor_shadow to default performance flags.
This fix the cursor issues on Window 2012



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1792 423420c4-83ab-492f-b58f-81f9feb106b5
2014-03-12 06:22:28 +00:00
Henrik Andersson
b8557c42ea Always enable rdpsnd channel and use flags to control use
of streamed audio or not.

This is a fix for driveredirection which requires rdpsnd
channel to work as mentioned in the following post.

http://social.msdn.microsoft.com/Forums/en-US/75024a3d-458f-4ed9-b55d-7852d0113bd7/rdpbcgrpdf-2-minors-problems-with-server-2012
 


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1791 423420c4-83ab-492f-b58f-81f9feb106b5
2014-03-06 11:43:43 +00:00
Henrik Andersson
e21475f3dc Change default printer driver to "MS Publisher Imagesetter".
Fixes bug #348



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1790 423420c4-83ab-492f-b58f-81f9feb106b5
2014-03-06 08:32:02 +00:00
Henrik Andersson
38ca609c78 Added minimal implementation for TS_AUTORECONNECT_STATUS_PDU.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1789 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-19 08:57:51 +00:00
Henrik Andersson
6e5bb07c9c Clear memory before use. Fixes bug where hash of licensefilename
differs between load and save.

Thanks to Florent Peterschmitt for reporting,testing and patch.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1788 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-19 08:02:07 +00:00
Henrik Andersson
6364680a8c Don't send incomplete connection request packet on reconnect.
Fixes connection error when reconnecting after a network error
or pending_resize disconnection..



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1787 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-07 14:08:00 +00:00
Henrik Andersson
f28bddc81b Fix bug with broken auto reconnect packet, introduced
in commit 1766.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1786 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-07 13:10:45 +00:00
Henrik Andersson
dbb87244dd Reset license issued state to make redirections work with issued device licenses.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1785 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-07 08:44:55 +00:00
Henrik Andersson
f9cb55471d Initialize g_hostname at declaration.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1784 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-07 07:33:04 +00:00
Henrik Andersson
0628179dba Send correct type for new licence request.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1783 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-06 10:33:44 +00:00
Henrik Andersson
f8b0b64742 Update licence constants to match specs for clarity
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1782 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-06 10:32:52 +00:00
Henrik Andersson
b9d0c366e2 Update debug log to use the new license constants.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1781 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-06 09:48:56 +00:00
Henrik Andersson
f613559ea5 Added a handler for license error alert.
There is a special case in here we need to consider, when no license is received
from the server we will get a License Error Alert PDU - Valid Client packet which
indicates that everything is ok.

This solves a connection error which resulted in protocol error 76.




git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1780 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-05 11:58:22 +00:00
Henrik Andersson
b4dfb9b5e0 Use license terms used in specification for easier overview.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1779 423420c4-83ab-492f-b58f-81f9feb106b5
2014-02-05 09:50:29 +00:00
Henrik Andersson
7ece007132 Fix indentation...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1778 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-12 14:01:58 +00:00
Henrik Andersson
c618390bbe Break out of rdp main loop if server sent a redirect PDU.
This is needed on 2012r2 were server will not disconnect
a rdp connection after a redirect packet.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1777 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-10 11:16:56 +00:00
Henrik Andersson
f5eac11fe8 Do not rename printercache blob if we dont have
source and dest name.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1776 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-06 13:56:37 +00:00
Henrik Andersson
013ac6d541 Make sure to check agains null pointer in disk_create()
Simplified FileRenameInformation in disk_set_information()
and handle error if newname is null.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1775 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-06 13:52:29 +00:00
Henrik Andersson
fe10877ed5 Make sure we free memory allocated by rdp_in_unistr()
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1774 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-06 13:36:00 +00:00
Henrik Andersson
f0b6604347 Changed rdp_in_unistr() to make dynamic allocation of converted string
instead of using hardcoded buffer sizes and assumtion that conversion
just fits the size.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1773 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-06 12:43:08 +00:00
Henrik Andersson
6de37a4f3b Dynamic allocation of redirect username.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1772 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-06 07:54:51 +00:00
Henrik Andersson
8c5d480bf3 Use g_redirect flag when creating a logon packet and clear
the flag when finished.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1771 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-04 11:52:33 +00:00
Henrik Andersson
48f661b1b0 Fix issue with WTS 2003 and a case were a network error
is triggered at a server redirect, preventing connection
to the new server.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1770 423420c4-83ab-492f-b58f-81f9feb106b5
2013-12-04 11:45:37 +00:00
Henrik Andersson
723b636153 Redirect should not take the codepath as a reconnect
which uses its own cookie and another code path.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1769 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 15:13:56 +00:00
Henrik Andersson
a090d06331 Use redirect cookie instead of password if available.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1768 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 15:13:04 +00:00