Commit Graph

1973 Commits

Author SHA1 Message Date
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
Henrik Andersson
cd82b65c69 Added --enable-static-gssglue for static link with libgssglue.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1686 423420c4-83ab-492f-b58f-81f9feb106b5
2012-12-03 08:40:47 +00:00
Henrik Andersson
d5e339e5d9 Add an check for mech set availability before using it,
this fixes a segfault if gssglue cant initialize when
/etc/gssapi_mech.conf is missing on system.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1685 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-29 11:38:29 +00:00
Henrik Andersson
b467d257c3 Cleanup of gssapi includes and fix for compile errors introduced.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1684 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-29 11:38:18 +00:00
Henrik Andersson
9c7aacbd6e Modified the protocol negotiation chain to retry with following
fallback order CredSSP -> TLS -> Plain RDP.

This should fix the bug 3589086.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1683 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-29 07:43:05 +00:00
Henrik Andersson
49d4996cd7 Added missing cssp_connect() declaration.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1682 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-29 07:42:54 +00:00
Henrik Andersson
9f174ea864 Added check if socket is connected to prevent sending disconnect
sequence to a closed socket.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1681 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-22 13:38:35 +00:00
Henrik Andersson
91d026f52c Reworked the logging to console to be simpler.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1680 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-22 07:57:38 +00:00
Henrik Andersson
51c17488a7 run of indent-all
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1679 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-22 07:57:26 +00:00
Henrik Andersson
83c4ea4c16 Fixes the copyright of new code.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1678 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-16 22:17:36 +00:00
Henrik Andersson
387ec8a6c6 Enable smartcard and credssp feature by default and added
--disable-<feature> for those to disable them.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1677 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-16 07:51:42 +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
Henrik Andersson
6d437f8116 Change the SSL context option to specific onse instead of using all
which introduces some problems.
Added some graceful handling of peer SSL shutdown for better error
reporting.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1675 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-15 11:20:37 +00:00
Henrik Andersson
9b242744da Added s_length() and s_reset() helper functions for easier
for cleaner code and readability where its used.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1674 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-15 11:20:24 +00:00
Henrik Andersson
2664c4f92a Reset licens error status when restting state, fixes issue with
pending resize which would hang for ever.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1673 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-08 12:15:24 +00:00
Henrik Andersson
9189cd55de Removed bad check against dwVersion which always made returned
before licence is stored.

Remove set of g_licence_issued flag at the wrong place.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1672 423420c4-83ab-492f-b58f-81f9feb106b5
2012-10-29 07:20:54 +00:00
Peter Åstrand
f5f7ce6301 Improve error message upon SSL_CERT_NOT_ON_SERVER.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1671 423420c4-83ab-492f-b58f-81f9feb106b5
2012-10-23 11:38:59 +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
619adfcc35 Fix for left/right brace in italian keymap.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1669 423420c4-83ab-492f-b58f-81f9feb106b5
2012-09-19 12:33:34 +00:00
Henrik Andersson
d74922f597 Adding missing statfs member in dummy struct, prevents
compiler errors if its used. Patch from Samuel.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1667 423420c4-83ab-492f-b58f-81f9feb106b5
2012-07-03 11:50:56 +00:00
Henrik Andersson
2a2dfea5ef Fixes a typo from previous commit.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1666 423420c4-83ab-492f-b58f-81f9feb106b5
2012-07-02 11:59:58 +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
9e860a2144 Fix order of libraries for static linkage with openssl.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1664 423420c4-83ab-492f-b58f-81f9feb106b5
2012-07-02 11:36:24 +00:00
Henrik Andersson
dcbf2e37c5 seamless_restack_test() leaves events on queue which breaks seamless
functionality, added event processing and wait for DestroyNotify for
the testing windows to empty the queue before leaving the test function.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1663 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-29 06:38:33 +00:00
Henrik Andersson
67e0c58394 Use sizeof() to prevent mixups for previous commit.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1661 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-19 06:54:23 +00:00
Henrik Andersson
eed9bc7210 Fixes a bug were license filename differs from load/save license that
was introduced with commit 1648 and made rdesktop to always request
a license and never present the one stored.

Also fixed a potential issue with hash string length that did not
have room for an \0 after the hash stringify conversion.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1660 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-19 06:01:10 +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
Henrik Andersson
cdce9aae75 Run indentation script.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1658 423420c4-83ab-492f-b58f-81f9feb106b5
2012-01-16 06:35:13 +00:00
Henrik Andersson
4dc2ce1a6a Fixes a typo introduced in r1605.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1657 423420c4-83ab-492f-b58f-81f9feb106b5
2012-01-12 22:43:13 +00:00
Henrik Andersson
6f25445792 Bump trunk version to 1.7.1post.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1656 423420c4-83ab-492f-b58f-81f9feb106b5
2012-01-09 13:09:37 +00:00
Henrik Andersson
72610f5b01 Bump up version to 1.7.1, updated ChangeLog
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1654 423420c4-83ab-492f-b58f-81f9feb106b5
2012-01-09 12:29:39 +00:00
Henrik Andersson
7457cd9bdd Adds 1 to data length for including the terminating null
character when sending clipboard data to rdp server.

This fixes issue were last character is missing in a
local copy then paste into server session.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1653 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-21 15:19:56 +00:00
Henrik Andersson
30add51c93 Fixed some 64bit issues with openssl linkage.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1652 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-21 15:14:25 +00:00
Henrik Andersson
6e7f45f3e7 Adding forceOutAlignemnt(out, 8) which is just cosmetics.
Thanks goes to Arvo for his findings and provided patch of the 
bugs fixed in r1649, r1650 and this commit.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1651 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-07 09:49:44 +00:00
Henrik Andersson
d8cc551013 Fixes serious bug were output are aligned before all data is available.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1650 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-07 09:25:27 +00:00
Henrik Andersson
7e39d5a450 Fixes an invalid check for memory allocation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1649 423420c4-83ab-492f-b58f-81f9feb106b5
2011-12-07 09:20:39 +00:00
Henrik Andersson
be90d40a34 Fixed issues with a too small buffer used for output of
sec_hash_sha1_16() which introduced crashes on solaris,
sha1 need 160bit output buffer.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1648 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-25 10:03:03 +00:00
Henrik Andersson
e789af1aea Added some meaning to a hardcoded value.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1647 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-25 09:55:32 +00:00
Henrik Andersson
abb83dbd6f This patch fixes smartcard handle problems on 64bit version
of rdesktop, this is jsut a hack to fix the problem with
smartcard imlpementation temporarly due the smartcard impl.
really needs to be reimplement for a cleaner code and proper
handling.

- Ripped out the old magic scard handle code to be replaced
  with mappings the works on 64bit rdesktop.

- Added a handle map to support mapping between a 64bit handle
  and 32bit eg:  pcsclite <- 64bit-> rdesktop <- 32bit -> WTS server.

- Added handle mapping for the context handle to which old code didn't
  event respected at all eg. 64bit context handled truncated to 32bit.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1646 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-24 13:19:52 +00:00
Henrik Andersson
0d98235f3f Fixes commit r1643 which was not complete and broke the build
because of missing type.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1645 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-22 10:31:30 +00:00
Henrik Andersson
8a52bf3a9b - Change licensestore to XDG directory ~/.local/share/rdesktop/licenses
- Added helper functions for SHA1 hash to hash the hostname used for
  licenses filename to hide information of what host user X connects 
  from in a infrastructure with NFS mounted home directories.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1644 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-21 10:51:08 +00:00
Henrik Andersson
aa517c7c39 pcsclite >= 1.6.2 does not include the type SCARD_READERSTATE_A which
breaks compilation, change code to use SCARD_READERSTATE which
is the new name and is also an typedef of the old SCARD_READERSTATE_A
from pcslite <1.9.2 versions.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1643 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-15 08:40:41 +00:00
Henrik Andersson
0b87100632 Applied patch from Thomas Uhle which includes fixes
the license handling, this patch fixes bug 2817779.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1642 423420c4-83ab-492f-b58f-81f9feb106b5
2011-11-15 07:27:17 +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
Henrik Andersson
43a36d31ce Updated manual to include the 32bit option for setting
bitdepth of the connection, also updated the persistent
cache documentation to include size of cache for 32bit
colordepth.

Fixes bug #2829857



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1638 423420c4-83ab-492f-b58f-81f9feb106b5
2011-10-05 06:54:45 +00:00
Peter Åstrand
4703efed4d Fixed style of copyright line
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1637 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-28 13:49:50 +00:00
Peter Åstrand
094f3bac04 Fixed style of a few copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1635 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-28 09:36:59 +00:00
Peter Åstrand
e0aa7a1fea Update to last patch, remove unused flush_mask variable.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1634 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-22 12:30:39 +00:00