Commit Graph

1459 Commits

Author SHA1 Message Date
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
Peter Åstrand
1e857787d8 Fix serial purge - TCIFLUSH was not working correctly.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1633 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-22 12:28:35 +00:00
Pierre Ossman
25d2d69f63 pkg-config can have cross-compiler variants.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1632 423420c4-83ab-492f-b58f-81f9feb106b5
2011-08-24 15:09:18 +00:00
Pierre Ossman
5274e765af Clean up the static linking of openssl and libsamplerate. We should now do
the bare minimum in most of the cases.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1631 423420c4-83ab-492f-b58f-81f9feb106b5
2011-08-24 15:08:41 +00:00
Peter Åstrand
ad99e08bcc Bumped up version to 1.7.0post.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1629 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 12:34:10 +00:00
Peter Åstrand
d3ae1f0b8a Bump up version to 1.7.0, updated ChangeLog
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1627 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 11:26:27 +00:00
Peter Åstrand
3819f8b56d Protect against malicious servers sending requests with "..". Fixes RH
bug 676252. Credits to Noam Rathaus <noamr@beyondsecurity.com> for
finding this bug.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1626 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 11:25:26 +00:00
Peter Åstrand
8939c3b04a Need to update the web.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1625 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 11:22:50 +00:00
Peter Åstrand
290fd9b54d How to make a new release.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1624 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:53:52 +00:00
Peter Åstrand
b55c32311f Remove tarball on distclean target.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1623 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:46:33 +00:00
Peter Åstrand
da08af3c5a Update copyright year in usage string, add "et al.".
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1622 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:30:28 +00:00
Peter Åstrand
e0ca09a189 Use PACKAGE_VERSION from Autoconf instead of hardcoded VERSION define.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1621 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:28:31 +00:00
Peter Åstrand
c7c0be0b98 Avoid compile warning about /* in comment.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1620 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-14 14:05:32 +00:00
Peter Åstrand
968f145c31 Correct .PHONY statement for AUTHORS target.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1618 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:45:30 +00:00
Peter Åstrand
3bff3477c8 Make it possible to automatically generate the AUTHORS file from the
source code. This adds a few new developers to AUTHORS. In some cases,
the email adress is also changed. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1617 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:33:22 +00:00