platform/upstream/freerdp.git
10 years agoMerge pull request #1853 from zhangzl2013/async
Marc-André Moreau [Wed, 21 May 2014 15:01:53 +0000 (11:01 -0400)]
Merge pull request #1853 from zhangzl2013/async

wfreerdp: add async input, update, transport and channels' events

10 years agoMerge pull request #1852 from orosam/auth3fix
Marc-André Moreau [Wed, 21 May 2014 15:01:12 +0000 (11:01 -0400)]
Merge pull request #1852 from orosam/auth3fix

Fix misplaced sec_trailer in rpc_auth_3 PDU

10 years agoMerge pull request #1845 from SBoyNumber1/DiskDrives
Marc-André Moreau [Wed, 21 May 2014 14:57:27 +0000 (10:57 -0400)]
Merge pull request #1845 from SBoyNumber1/DiskDrives

Removed autosharing of all disk drives during redirect of any drive.

10 years agoMerge pull request #1844 from caramorsimon/tokenrouting
Marc-André Moreau [Wed, 21 May 2014 14:56:56 +0000 (10:56 -0400)]
Merge pull request #1844 from caramorsimon/tokenrouting

Test for CRLF (0x0D0A) termination on the routing token

10 years agoMerge pull request #1826 from Hobby-Student/master
Marc-André Moreau [Wed, 21 May 2014 14:53:47 +0000 (10:53 -0400)]
Merge pull request #1826 from Hobby-Student/master

fix FreeBSD compile errors

10 years agoMerge pull request #1762 from zhangzl2013/wfreerdp
Bernhard Miklautz [Wed, 21 May 2014 09:21:02 +0000 (11:21 +0200)]
Merge pull request #1762 from zhangzl2013/wfreerdp

wfreerdp: fix incorrect line color.

10 years agowfreerdp: add async input, update, transport and channels' events handling.
Zhang Zhaolong [Wed, 21 May 2014 06:52:57 +0000 (14:52 +0800)]
wfreerdp: add async input, update, transport and channels' events handling.

10 years agoMerge pull request #1629 from bmiklautz/update_pull_1609
Hardening [Tue, 20 May 2014 20:10:17 +0000 (22:10 +0200)]
Merge pull request #1629 from bmiklautz/update_pull_1609

Android jpeg build enhancement

10 years agolibfreerdp-core: fix misplaced sec_trailer in rpc_auth_3 PDU
Sandor Oroszi [Tue, 20 May 2014 15:15:26 +0000 (17:15 +0200)]
libfreerdp-core: fix misplaced sec_trailer in rpc_auth_3 PDU

10 years agoMerge pull request #1430 from sukhodolin/Fixes
Hardening [Tue, 20 May 2014 13:14:22 +0000 (15:14 +0200)]
Merge pull request #1430 from sukhodolin/Fixes

Fix debug output on Win32

10 years agoMerge pull request #1839 from hardening/base64
Hardening [Tue, 20 May 2014 09:17:47 +0000 (11:17 +0200)]
Merge pull request #1839 from hardening/base64

Changes for base64

10 years agoMerge pull request #1840 from hardening/valgrind
Bernhard Miklautz [Mon, 19 May 2014 14:23:06 +0000 (16:23 +0200)]
Merge pull request #1840 from hardening/valgrind

Adds some support for valgrind helpers

10 years agoTest for RoutingTokenLength before checking against termination chars
caramorsimon [Sun, 18 May 2014 20:32:26 +0000 (21:32 +0100)]
Test for RoutingTokenLength before checking against termination chars

10 years agoRemoved autosharing of all disk drives during redirect of any drive.
SBoyNumber1 [Sat, 17 May 2014 20:05:21 +0000 (23:05 +0300)]
Removed autosharing of all disk drives during redirect of any drive.

10 years agoTest for CRLF (0x0D0A) termination on the routing token before trying to add it again
caramorsimon [Fri, 16 May 2014 15:19:22 +0000 (16:19 +0100)]
Test for CRLF (0x0D0A) termination on the routing token before trying to add it again

10 years agoAdds some support for valgrind helpers
Hardening [Mon, 12 May 2014 16:01:29 +0000 (18:01 +0200)]
Adds some support for valgrind helpers

This patch adds an option to compile freerdp in a valgrind compliant way.
The purpose is to ease memchecking when connecting with TLS. We mark bytes
retrieved from SSL_read() as plainly defined to prevent the undefined contamination.
With the patch and the option activated you get a single warning at connection
during the handshake, and nothing after.

10 years agoChanges for base64
Hardening [Sun, 11 May 2014 20:42:01 +0000 (22:42 +0200)]
Changes for base64

This patch changes the prototype for decode_base64 so that the encode / decode
method are consistant (encode(BYTE *) => char* and decode(char*) => BYTE*).
It also does some improvements with unrolling loops so that end conditions are
tested only at the end.
The patch also adds some unitary tests.
Before the patch base64_decode() made valgrind complain about uninitialized
bits, after valgrind is happy and very quiet.

10 years agoMerge pull request #1837 from hardening/const_cert_fix
Marc-André Moreau [Sat, 10 May 2014 14:59:38 +0000 (10:59 -0400)]
Merge pull request #1837 from hardening/const_cert_fix

Const cert fix

10 years agoTreat OOM in GCC certificates
Hardening [Fri, 9 May 2014 20:37:47 +0000 (22:37 +0200)]
Treat OOM in GCC certificates

This patch treats OOM cases and do a trivial cleanup

10 years agoAdd some const modifiers
Hardening [Fri, 9 May 2014 20:36:50 +0000 (22:36 +0200)]
Add some const modifiers

This allows these functions to be used with const buffers.

10 years agoMerge pull request #1836 from awakecoding/master
Marc-André Moreau [Thu, 8 May 2014 22:28:59 +0000 (18:28 -0400)]
Merge pull request #1836 from awakecoding/master

LBInfo, SmartCard, XCrush, Cleanup

10 years agofreerdp: fix several type related warnings
Marc-André Moreau [Thu, 8 May 2014 22:02:02 +0000 (18:02 -0400)]
freerdp: fix several type related warnings

10 years agolibfreerdp-core: properly reset internal RDP state on reconnect
Marc-André Moreau [Thu, 8 May 2014 21:22:39 +0000 (17:22 -0400)]
libfreerdp-core: properly reset internal RDP state on reconnect

10 years agolibwinpr-pipe: fix circular dependency
Marc-André Moreau [Thu, 8 May 2014 21:17:39 +0000 (17:17 -0400)]
libwinpr-pipe: fix circular dependency

10 years agoMerge branch 'awakecoding' of github.com:vworkspace/FreeRDP
Marc-André Moreau [Thu, 8 May 2014 20:38:21 +0000 (16:38 -0400)]
Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP

Conflicts:
winpr/libwinpr/pipe/pipe.c

10 years agoMerge branch 'xcrush' of github.com:awakecoding/FreeRDP
Marc-André Moreau [Thu, 8 May 2014 20:11:55 +0000 (16:11 -0400)]
Merge branch 'xcrush' of github.com:awakecoding/FreeRDP

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Thu, 8 May 2014 20:11:42 +0000 (16:11 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agoMerge pull request #1825 from hardening/compil_warnings
Marc-André Moreau [Thu, 8 May 2014 20:09:18 +0000 (16:09 -0400)]
Merge pull request #1825 from hardening/compil_warnings

Fix some compilation warnings

10 years agoMerge pull request #1835 from SBoyNumber1/rfx-issue1738
Marc-André Moreau [Thu, 8 May 2014 20:08:42 +0000 (16:08 -0400)]
Merge pull request #1835 from SBoyNumber1/rfx-issue1738

Fixed issue rfx problem: no rects #1738.

10 years agoMerge pull request #1822 from hardening/sound_hardening
Marc-André Moreau [Thu, 8 May 2014 20:00:52 +0000 (16:00 -0400)]
Merge pull request #1822 from hardening/sound_hardening

Fixes in the server-side sound channel

10 years agoMerge pull request #1834 from bmiklautz/fix/misc
Marc-André Moreau [Thu, 8 May 2014 19:59:17 +0000 (15:59 -0400)]
Merge pull request #1834 from bmiklautz/fix/misc

Misc small fixes

10 years agoMerge pull request #1833 from bmiklautz/fix/makecert
Marc-André Moreau [Thu, 8 May 2014 19:58:50 +0000 (15:58 -0400)]
Merge pull request #1833 from bmiklautz/fix/makecert

makecert: install header file

10 years agoMerge pull request #1832 from bmiklautz/feat/channel_funcs
Marc-André Moreau [Thu, 8 May 2014 19:58:29 +0000 (15:58 -0400)]
Merge pull request #1832 from bmiklautz/feat/channel_funcs

wtsvc: add extended channel handling functions

10 years agoMerge pull request #1831 from itsmikeeng/patch-1
Marc-André Moreau [Thu, 8 May 2014 19:57:46 +0000 (15:57 -0400)]
Merge pull request #1831 from itsmikeeng/patch-1

Fixed padding in settings.h

10 years agoMerge pull request #1829 from bmiklautz/fix/cxxflags
Marc-André Moreau [Thu, 8 May 2014 19:56:19 +0000 (15:56 -0400)]
Merge pull request #1829 from bmiklautz/fix/cxxflags

Detect and set CXX flags separately

10 years agochannels/smartcard: cleanup
Marc-André Moreau [Thu, 8 May 2014 19:24:33 +0000 (15:24 -0400)]
channels/smartcard: cleanup

10 years agoFixed issue rfx problem: no rects #1738.
SBoyNumber1 [Thu, 8 May 2014 16:20:28 +0000 (19:20 +0300)]
Fixed issue rfx problem: no rects #1738.

Added clipping of whole session in case when server sends zero rects.

10 years agochannels/smartcard: better selection of async vs sync processing of IRPs
Marc-André Moreau [Thu, 8 May 2014 01:16:05 +0000 (21:16 -0400)]
channels/smartcard: better selection of async vs sync processing of IRPs

10 years agochannels/rdpdr: remove sequenceId usage
Marc-André Moreau [Wed, 7 May 2014 21:50:09 +0000 (17:50 -0400)]
channels/rdpdr: remove sequenceId usage

10 years agochannels/smartcard: add improve completed IRP management
Marc-André Moreau [Wed, 7 May 2014 21:41:53 +0000 (17:41 -0400)]
channels/smartcard: add improve completed IRP management

10 years agowinpr-file: harden GetNamePipeFileDescriptor
Bernhard Miklautz [Wed, 7 May 2014 19:23:54 +0000 (21:23 +0200)]
winpr-file: harden GetNamePipeFileDescriptor

Ensure that GetNamePipeFileDescriptor returns an error
if the supplied handle isn't a named pipe.

10 years agomakecert: install header file
Bernhard Miklautz [Wed, 7 May 2014 19:09:34 +0000 (21:09 +0200)]
makecert: install header file

install the makecert header file for the exported static libary to
winpr/tools/makecert.h

10 years agosample channel: fix build
Bernhard Miklautz [Wed, 7 May 2014 18:56:49 +0000 (20:56 +0200)]
sample channel: fix build

sample channel is static and not dynamic therefore dynamic
should be set to FALSE in add_channel_client_library

10 years agowtsvc: use _strnicmp instead of strncasecmp
Bernhard Miklautz [Wed, 7 May 2014 18:36:22 +0000 (20:36 +0200)]
wtsvc: use _strnicmp instead of strncasecmp

_strnicmp is available for platforms

10 years agowtsvc: add extended channel handling functions
Bernhard Miklautz [Wed, 7 May 2014 18:20:02 +0000 (20:20 +0200)]
wtsvc: add extended channel handling functions

10 years agoFixed padding
itsmikeeng [Wed, 7 May 2014 17:50:14 +0000 (10:50 -0700)]
Fixed padding

10 years agoMerge pull request #1830 from hardening/certificate_fix
Bernhard Miklautz [Wed, 7 May 2014 14:28:58 +0000 (16:28 +0200)]
Merge pull request #1830 from hardening/certificate_fix

Fix null certificate that is not an error

10 years agoFix null certificate that is not an error
Hardening [Wed, 7 May 2014 14:12:38 +0000 (16:12 +0200)]
Fix null certificate that is not an error

10 years agochannels/smartcard: add sequence id to IRPs for easier cancellation
Marc-André Moreau [Tue, 6 May 2014 22:19:54 +0000 (18:19 -0400)]
channels/smartcard: add sequence id to IRPs for easier cancellation

10 years agochannels/smartcard: add rgSCardContextList
Marc-André Moreau [Tue, 6 May 2014 21:42:10 +0000 (17:42 -0400)]
channels/smartcard: add rgSCardContextList

10 years agochannels/smartcard: avoid crash on SCardStatusA failure
Marc-André Moreau [Tue, 6 May 2014 18:25:19 +0000 (11:25 -0700)]
channels/smartcard: avoid crash on SCardStatusA failure

10 years agochannels/smartcard: improve debug output, fix GetStatusChange SCARD_E_CANCELLED,...
Marc-André Moreau [Tue, 6 May 2014 17:00:44 +0000 (10:00 -0700)]
channels/smartcard: improve debug output, fix GetStatusChange SCARD_E_CANCELLED, fix SCardGetAttrib current protocol type

10 years agolibfreerdp-codec: start working on xcrush compressor
Marc-André Moreau [Tue, 6 May 2014 00:47:30 +0000 (20:47 -0400)]
libfreerdp-codec: start working on xcrush compressor

10 years agolibwinpr-utils: flush file after each write in wlog
Marc-André Moreau [Mon, 5 May 2014 22:04:20 +0000 (18:04 -0400)]
libwinpr-utils: flush file after each write in wlog

10 years agolibwinpr-smartcard: fix SCardGetAttrib for friendly name (unicode)
Marc-André Moreau [Mon, 5 May 2014 21:27:29 +0000 (17:27 -0400)]
libwinpr-smartcard: fix SCardGetAttrib for friendly name (unicode)

10 years agolibfreerdp-codec: initial RDP6.1 XCrush bulk data decompression support
Marc-André Moreau [Mon, 5 May 2014 20:26:31 +0000 (16:26 -0400)]
libfreerdp-codec: initial RDP6.1 XCrush bulk data decompression support

10 years agolibfreerdp-codec: start working on XCrush decompressor
Marc-André Moreau [Mon, 5 May 2014 01:50:17 +0000 (21:50 -0400)]
libfreerdp-codec: start working on XCrush decompressor

10 years agolibfreerdp-codec: stub XCrush data compression
Marc-André Moreau [Sun, 4 May 2014 23:46:40 +0000 (19:46 -0400)]
libfreerdp-codec: stub XCrush data compression

10 years agolibwinpr-smartcard: start handling SCardControl control code conversions
Marc-André Moreau [Sat, 3 May 2014 23:02:17 +0000 (19:02 -0400)]
libwinpr-smartcard: start handling SCardControl control code conversions

10 years agolibwinpr-smartcard: improve SCardGetAttrib, fix null SCARDCONTEXT usage in SCardListR...
Marc-André Moreau [Sat, 3 May 2014 21:07:30 +0000 (17:07 -0400)]
libwinpr-smartcard: improve SCardGetAttrib, fix null SCARDCONTEXT usage in SCardListReaders

10 years agolibwinpr-smartcard: fix pcsc-lite SCARD_IO_REQUEST incompatibility
Marc-André Moreau [Sat, 3 May 2014 18:20:17 +0000 (14:20 -0400)]
libwinpr-smartcard: fix pcsc-lite SCARD_IO_REQUEST incompatibility

10 years agolibwinpr-smartcard: fix PCSC incompatible type definitions
Marc-André Moreau [Sat, 3 May 2014 17:49:50 +0000 (13:49 -0400)]
libwinpr-smartcard: fix PCSC incompatible type definitions

10 years agoFixed bad check
Hardening [Fri, 2 May 2014 20:45:38 +0000 (22:45 +0200)]
Fixed bad check

10 years agoFix ChannelEvent
Hardening [Fri, 2 May 2014 19:53:52 +0000 (21:53 +0200)]
Fix ChannelEvent

10 years agoFreeBSD compile errors - fix timezone
Hobby-Student [Fri, 2 May 2014 16:27:03 +0000 (18:27 +0200)]
FreeBSD compile errors - fix timezone

10 years agoFreeBSD compile errors - fix typecast
Hobby-Student [Thu, 1 May 2014 19:25:33 +0000 (21:25 +0200)]
FreeBSD compile errors - fix typecast

10 years agoFreeBSD compile errors - fix typo #3
Hobby-Student [Thu, 1 May 2014 17:47:58 +0000 (19:47 +0200)]
FreeBSD compile errors - fix typo #3

10 years agoFreeBSD compile errors - add comments
Hobby-Student [Thu, 1 May 2014 13:24:11 +0000 (15:24 +0200)]
FreeBSD compile errors - add comments

10 years agoFreeBSD compile errors - fix typo #2
Hobby-Student [Thu, 1 May 2014 13:19:09 +0000 (15:19 +0200)]
FreeBSD compile errors - fix typo #2

10 years agoFreeBSD compile errors - fix typo
Hobby-Student [Thu, 1 May 2014 13:17:54 +0000 (15:17 +0200)]
FreeBSD compile errors - fix typo

10 years agoFreeBSD compile errors
Hobby-Student [Thu, 1 May 2014 13:09:35 +0000 (15:09 +0200)]
FreeBSD compile errors

10 years agolibfreerdp-core: avoid reusing LoadBalanceInfo on reconnection
Marc-André Moreau [Wed, 30 Apr 2014 21:47:37 +0000 (17:47 -0400)]
libfreerdp-core: avoid reusing LoadBalanceInfo on reconnection

10 years agobuild: define -D__FILE__ only for Release builds
Bernhard Miklautz [Wed, 30 Apr 2014 10:11:28 +0000 (12:11 +0200)]
build: define -D__FILE__ only for Release builds

10 years agobuild: check c++ compliler flags seperately
Bernhard Miklautz [Wed, 30 Apr 2014 10:05:51 +0000 (12:05 +0200)]
build: check c++ compliler flags seperately

Flags for C and C++ compiler need to be checked seperately since
the c and c++ compiler might not support the same flags (even if
they are the same version).

10 years agotls: WSAGetLastError should be used on Windows to check system socket error.
Vic Lee [Tue, 29 Apr 2014 15:05:30 +0000 (23:05 +0800)]
tls: WSAGetLastError should be used on Windows to check system socket error.

10 years agoFix some compilation warnings
Hardening [Tue, 29 Apr 2014 14:02:31 +0000 (16:02 +0200)]
Fix some compilation warnings

10 years agotls: do not kill the connection for non-fatal openssl error codes.
Vic Lee [Tue, 29 Apr 2014 13:48:11 +0000 (21:48 +0800)]
tls: do not kill the connection for non-fatal openssl error codes.

10 years agoRemove a warning
Hardening [Tue, 29 Apr 2014 08:39:07 +0000 (10:39 +0200)]
Remove a warning

10 years agoMore fixes in DSP
Hardening [Tue, 29 Apr 2014 08:32:16 +0000 (10:32 +0200)]
More fixes in DSP

10 years agodrdynvc: fix an incorrect length indicator.
Vic Lee [Tue, 29 Apr 2014 06:21:37 +0000 (14:21 +0800)]
drdynvc: fix an incorrect length indicator.

10 years agoaudin: remove unused variable.
Vic Lee [Tue, 29 Apr 2014 06:20:58 +0000 (14:20 +0800)]
audin: remove unused variable.

10 years agoFixes in the server-side sound channel
Hardening [Mon, 28 Apr 2014 22:59:41 +0000 (00:59 +0200)]
Fixes in the server-side sound channel

This patch:
* treats OOM situations
* adds checks when reading audio channel messages

10 years agolibfreerdp-core: fix potential crash on session redirection failure
Marc-André Moreau [Mon, 28 Apr 2014 20:44:52 +0000 (16:44 -0400)]
libfreerdp-core: fix potential crash on session redirection failure

10 years agoMerge pull request #1821 from bmiklautz/fix/fdsapi_load
Marc-André Moreau [Mon, 28 Apr 2014 16:40:44 +0000 (12:40 -0400)]
Merge pull request #1821 from bmiklautz/fix/fdsapi_load

wtsapi: library loading consolidation and fallback

10 years agowtsapi: add fallback to load freerds lib
Bernhard Miklautz [Mon, 28 Apr 2014 14:54:58 +0000 (16:54 +0200)]
wtsapi: add fallback to load freerds lib

Try to load libfreerds-fdsapi.so directly if the freerds ini file
isn't found. This adds a fallback that uses the systems library
loading mechanisms (e.g LD_LIBRARY_PATH).
Might also be required for older version of FreeRDS.

10 years agowtsapi: replaced printf with fprintf
Bernhard Miklautz [Mon, 28 Apr 2014 14:48:24 +0000 (16:48 +0200)]
wtsapi: replaced printf with fprintf

10 years agowtsapi: consolidate lib initialization and load
Bernhard Miklautz [Mon, 28 Apr 2014 14:46:07 +0000 (16:46 +0200)]
wtsapi: consolidate lib initialization and load

Move duplicated code to LoadAndInitialize.

10 years agoMerge pull request #1820 from awakecoding/master
Marc-André Moreau [Mon, 28 Apr 2014 02:45:52 +0000 (22:45 -0400)]
Merge pull request #1820 from awakecoding/master

SmartCard Fixes, Ini File Parser, Message-Only Windows, WTSAPI Improvements

10 years agowinpr: fix type redefinition
Marc-André Moreau [Mon, 28 Apr 2014 02:35:04 +0000 (22:35 -0400)]
winpr: fix type redefinition

10 years agolibwinpr-smartcard: fix failing unit test
Marc-André Moreau [Mon, 28 Apr 2014 02:23:42 +0000 (22:23 -0400)]
libwinpr-smartcard: fix failing unit test

10 years agowinpr: check for __LP64__ for DWORD and LONG definitions
Marc-André Moreau [Mon, 28 Apr 2014 02:05:31 +0000 (22:05 -0400)]
winpr: check for __LP64__ for DWORD and LONG definitions

10 years agolibwinpr-wtsapi: fix failing tests
Marc-André Moreau [Mon, 28 Apr 2014 01:54:21 +0000 (21:54 -0400)]
libwinpr-wtsapi: fix failing tests

10 years agoMerge pull request #1819 from hardening/orders_micro_fix
Marc-André Moreau [Mon, 28 Apr 2014 01:51:13 +0000 (21:51 -0400)]
Merge pull request #1819 from hardening/orders_micro_fix

Fix typo in update_write_4byte_unsigned()

10 years agoMerge pull request #1817 from zhangzl2013/win-auto-reconnect
Marc-André Moreau [Mon, 28 Apr 2014 01:46:16 +0000 (21:46 -0400)]
Merge pull request #1817 from zhangzl2013/win-auto-reconnect

Win auto reconnect

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Mon, 28 Apr 2014 01:46:06 +0000 (21:46 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agowinpr: fix missing link dependencies
Marc-André Moreau [Mon, 28 Apr 2014 01:45:50 +0000 (21:45 -0400)]
winpr: fix missing link dependencies

10 years agoclient/common: honor RedirectSmartCards, RedirectPrinters
Marc-André Moreau [Mon, 28 Apr 2014 01:29:44 +0000 (21:29 -0400)]
client/common: honor RedirectSmartCards, RedirectPrinters

10 years agolibwinpr-smartcard: return SCARD_NO_SERVICE when no internal callback is registered
Marc-André Moreau [Mon, 28 Apr 2014 00:11:31 +0000 (20:11 -0400)]
libwinpr-smartcard: return SCARD_NO_SERVICE when no internal callback is registered

10 years agoMerge branch 'smartcard' of github.com:awakecoding/FreeRDP
Marc-André Moreau [Sun, 27 Apr 2014 23:21:35 +0000 (19:21 -0400)]
Merge branch 'smartcard' of github.com:awakecoding/FreeRDP

10 years agoMerge branch 'master' of github.com:awakecoding/FreeRDP into fdsapi
Marc-André Moreau [Sun, 27 Apr 2014 23:18:23 +0000 (19:18 -0400)]
Merge branch 'master' of github.com:awakecoding/FreeRDP into fdsapi