Commit Graph

141 Commits

Author SHA1 Message Date
Henrik Andersson
030333d7e1 Cleanup and clarify of TS_INFO_PAKCKET.
- Removed unused LOGON_BLOB code
- Removed AUTOLOGON, if password is null no logon will be
  performed anyway.
- Comments of fields written to packet
- Clarified string handling difference between TS_INFO_PACKET
  and TS_EXTENDED_INFO_PACKET



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1766 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 14:46:14 +00:00
Henrik Andersson
820a2f7bb8 Server redirect password should be interpreted as a binary blob
and not a unicode string, which is passed though as a password
during the redirection.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1765 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 11:59:05 +00:00
Henrik Andersson
a1db8d906c Fix issue while parsing the redirect packet to match the spec.
However there is a change in the length compared to current
implementation which has provenly been working, so lets handle it
with a flag for now.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1764 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 11:33:50 +00:00
Henrik Andersson
092f895a20 Revert an issue introduced by commit r1757 due to
unclear specs. The data is processed in lower layers
in the protocol stack.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1763 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-28 11:18:11 +00:00
Henrik Andersson
448a16511f Fixe bug with size of destination for unistr convert.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1761 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 11:47:16 +00:00
Henrik Andersson
e63a44acb1 Completes previous commit r1759, making redirect server string
dynamically allocated when used.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1760 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 11:40:45 +00:00
Henrik Andersson
a080b6750e Make use of announce target FQDN in a redirect.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1759 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 11:26:49 +00:00
Henrik Andersson
3c110e5e17 Do not perform an actual redirect if server redirect pdu is
flagged as informational.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1758 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 11:06:32 +00:00
Henrik Andersson
f74729b592 Added handling of enhanced security redirect PDU.
Part of the rework of server redirection.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1757 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 08:21:06 +00:00
Henrik Andersson
3e0d255bfb Initial cleanup of the redirection implementation.
Renamed redirect cookie to proper redirect load balance info,
also made it dynamically allocated due to its variable length.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1756 423420c4-83ab-492f-b58f-81f9feb106b5
2013-11-26 07:56:04 +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
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
51014c91df Initial implementation of kerberos server autentication with CredSSP,
disabled by default and is enabled using argument --enable-credssp
to configure script.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1676 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-15 11:21:01 +00:00
Peter Åstrand
5cb7910413 Indented with indent-all.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1670 423420c4-83ab-492f-b58f-81f9feb106b5
2012-10-23 11:38:27 +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
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
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
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
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
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
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
4c6424c1d4 Commented DaylightBias and clientSessionId fields.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1531 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 07:50:36 +00:00
Peter Åstrand
dddbfd93d8 Added comments about the TS_EXTENDED_INFO_PACKET variables.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1530 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-11 13:11:19 +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
cf715c225c Indented on Fedora 11
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1527 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-07 18:52:26 +00:00
Jay Sorg
fdcd8d7591 added new pointers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1520 423420c4-83ab-492f-b58f-81f9feb106b5
2009-10-25 21:36:17 +00:00
Jay Sorg
6bc8c23da3 send the correct num_caps in rdp_send_confirm_active, re-enable glyph cache
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1519 423420c4-83ab-492f-b58f-81f9feb106b5
2009-10-19 23:02:52 +00:00
Peter Åstrand
ea46f1729d process_data_pdu never returns True nowadays, so the comment about the
disc variable is incorrect. Removed the variable, since it's always
False.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1508 423420c4-83ab-492f-b58f-81f9feb106b5
2009-08-27 07:30:32 +00:00
Peter Åstrand
c7feab2840 Ran indent-all
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1484 423420c4-83ab-492f-b58f-81f9feb106b5
2008-11-25 08:05:25 +00:00
Jay Sorg
c3dc159869 brush cache for > 2 color brushes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1482 423420c4-83ab-492f-b58f-81f9feb106b5
2008-11-01 02:37:10 +00:00
Peter Åstrand
b64678c9ee Temporarily disabled the recently added brush cache feature, due to
bug 2167833.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1481 423420c4-83ab-492f-b58f-81f9feb106b5
2008-10-20 07:16: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
Jay Sorg
88855ddcbf update the copyright year
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Jay Sorg
b59c4b92a6 added brush cache
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1473 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:35:24 +00:00
Peter Åstrand
f6e5fe5f38 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1428 423420c4-83ab-492f-b58f-81f9feb106b5
2008-01-24 08:06:02 +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
b7fa2fb4da remove extra word at end of logon blob
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1423 423420c4-83ab-492f-b58f-81f9feb106b5
2007-12-23 07:07:50 +00:00
Jay Sorg
e16245fb2d rdp endian is always le
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1422 423420c4-83ab-492f-b58f-81f9feb106b5
2007-12-23 06:45:47 +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
Jay Sorg
b670bdacfa RD_ prefix and win32 compatibility for core files
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1363 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 04:55:56 +00:00
Michael Gernoth
082031280a 64bit fix from Jennings Jared <jared.jennings.ctr@eglin.af.mil>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1307 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 18:38:40 +00:00
Matt Chapman
797a7c980c Windows Vista Beta 2 sends a disconnect PDU with reason 0 when reconnecting
to a disconnected session (I do not know if this is a bug or a feature).
Previously we would drop the connection.

I suspect that in general we shouldn't be dropping the connection in
response to the disconnect PDU; we should treat it as informative like the
logon PDU and just save the status.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1237 423420c4-83ab-492f-b58f-81f9feb106b5
2006-06-14 08:59:03 +00:00
Peter Åstrand
c05dbc98b1 When synchronizing numlock, send 0 if not using numlock synchronizing,
since that's what our local state variable is initialized to.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1216 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-07 14:41:34 +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
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