platform/upstream/freerdp.git
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 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

10 years agolibwinpr-smartcard: update PCSC-WinPR instructions (WIP)
Marc-André Moreau [Sun, 27 Apr 2014 21:38:45 +0000 (17:38 -0400)]
libwinpr-smartcard: update PCSC-WinPR instructions (WIP)

10 years agoFix typo in update_write_4byte_unsigned()
Hardening [Sun, 27 Apr 2014 21:21:30 +0000 (23:21 +0200)]
Fix typo in update_write_4byte_unsigned()

10 years agolibwinpr-smartcard: fix workaround for lack of PnP Notification support on OS X
Marc-André Moreau [Sun, 27 Apr 2014 20:43:09 +0000 (16:43 -0400)]
libwinpr-smartcard: fix workaround for lack of PnP Notification support on OS X

10 years agochannels/smartcard: harden unpacking code, don't modify GetStatusChange parameters
Marc-André Moreau [Sun, 27 Apr 2014 19:45:36 +0000 (15:45 -0400)]
channels/smartcard: harden unpacking code, don't modify GetStatusChange parameters

10 years agowfreerdp: port auto reconnection to Windows.
Zhang Zhaolong [Sun, 27 Apr 2014 12:52:45 +0000 (20:52 +0800)]
wfreerdp: port auto reconnection to Windows.

10 years agolibfreerdp-core: fix assignment after memory free.
Zhang Zhaolong [Sun, 27 Apr 2014 12:32:52 +0000 (20:32 +0800)]
libfreerdp-core: fix assignment after memory free.

10 years agoMerge pull request #1816 from awakecoding/master
Marc-André Moreau [Sat, 26 Apr 2014 19:41:23 +0000 (15:41 -0400)]
Merge pull request #1816 from awakecoding/master

Compression, SmartCard and CMake Fixes

10 years agocmake: only use __FILE__ relative path hack in release flags
Marc-André Moreau [Sat, 26 Apr 2014 18:14:19 +0000 (14:14 -0400)]
cmake: only use __FILE__ relative path hack in release flags

10 years agolibfreerdp-core: fix compression level
Marc-André Moreau [Sat, 26 Apr 2014 17:53:28 +0000 (13:53 -0400)]
libfreerdp-core: fix compression level

10 years agoMerge pull request #1814 from zhangzl2013/memory
Marc-André Moreau [Sat, 26 Apr 2014 17:50:38 +0000 (13:50 -0400)]
Merge pull request #1814 from zhangzl2013/memory

Fix potential memory leak.

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Sat, 26 Apr 2014 17:47:01 +0000 (13:47 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agochannels/urbdrc: fix cmake scripts
Marc-André Moreau [Sat, 26 Apr 2014 17:44:58 +0000 (13:44 -0400)]
channels/urbdrc: fix cmake scripts

10 years agoMerge branch 'master' of github.com:awakecoding/FreeRDP
Marc-André Moreau [Sat, 26 Apr 2014 16:31:32 +0000 (12:31 -0400)]
Merge branch 'master' of github.com:awakecoding/FreeRDP

10 years agolibfreerdp-utils: purge deprecated list utils
Marc-André Moreau [Sat, 26 Apr 2014 16:31:24 +0000 (12:31 -0400)]
libfreerdp-utils: purge deprecated list utils

10 years agocore: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 05:44:28 +0000 (13:44 +0800)]
core: fix memory leak in case of error out.

10 years agoserial: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 05:43:52 +0000 (13:43 +0800)]
serial: fix memory leak in case of error out.

10 years agolibwinpr: minor fix print uninitialized variable.
Zhang Zhaolong [Sat, 26 Apr 2014 05:13:12 +0000 (13:13 +0800)]
libwinpr: minor fix print uninitialized variable.

10 years agoserial: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 04:24:56 +0000 (12:24 +0800)]
serial: fix memory leak in case of error out.

10 years agoclient-common: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 04:19:28 +0000 (12:19 +0800)]
client-common: fix memory leak in case of error out.

10 years agocodec: fix memory leak in case of realloc() failed.
Zhang Zhaolong [Sat, 26 Apr 2014 04:16:34 +0000 (12:16 +0800)]
codec: fix memory leak in case of realloc() failed.

10 years agocore: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 04:08:30 +0000 (12:08 +0800)]
core: fix memory leak in case of error out.

10 years agocore: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 04:05:52 +0000 (12:05 +0800)]
core: fix memory leak in case of error out.

10 years agocore: fix memory leak in case of error out.
Zhang Zhaolong [Sat, 26 Apr 2014 04:00:07 +0000 (12:00 +0800)]
core: fix memory leak in case of error out.