platform/upstream/freerdp.git
10 years agoFix Thread handle leak
Hardening [Wed, 23 Apr 2014 14:59:14 +0000 (16:59 +0200)]
Fix Thread handle leak

When a thread pool is release the Thread handle is leaked.

10 years agoaudin/server: fix server audio input channel.
Vic Lee [Tue, 22 Apr 2014 11:02:23 +0000 (19:02 +0800)]
audin/server: fix server audio input channel.

10 years agochannels: fix link errors.
Vic Lee [Tue, 22 Apr 2014 07:06:49 +0000 (15:06 +0800)]
channels: fix link errors.

10 years agoRevert "channels: fix link errors."
Vic Lee [Tue, 22 Apr 2014 07:05:53 +0000 (15:05 +0800)]
Revert "channels: fix link errors."

This reverts commit 2fc7f9c48553c415f49b65de221f00e8d6d2f095.

10 years agoMerge pull request #1633 from MicahChase/master
Martin Fleisz [Tue, 22 Apr 2014 06:36:25 +0000 (08:36 +0200)]
Merge pull request #1633 from MicahChase/master

Bluetooth Keyboard Fix

10 years agoMerge pull request #1803 from hardening/www_authenticate_fix
Marc-André Moreau [Mon, 21 Apr 2014 16:15:35 +0000 (12:15 -0400)]
Merge pull request #1803 from hardening/www_authenticate_fix

Www authenticate fix

10 years agoaudin/server: fix a crash.
Vic Lee [Mon, 21 Apr 2014 10:13:12 +0000 (18:13 +0800)]
audin/server: fix a crash.

10 years agochannels: fix link errors.
Vic Lee [Mon, 21 Apr 2014 09:47:12 +0000 (17:47 +0800)]
channels: fix link errors.

10 years agoMerge pull request #1804 from hardening/bypassLocalFix
Marc-André Moreau [Mon, 21 Apr 2014 03:25:18 +0000 (23:25 -0400)]
Merge pull request #1804 from hardening/bypassLocalFix

Honor bypass local gateway setting

10 years agoMerge pull request #1801 from hardening/queue_stack_fixes
Marc-André Moreau [Mon, 21 Apr 2014 03:24:19 +0000 (23:24 -0400)]
Merge pull request #1801 from hardening/queue_stack_fixes

Fixes for queue and stack

10 years agoHonor bypass local gateway setting
Hardening [Sat, 19 Apr 2014 21:31:12 +0000 (23:31 +0200)]
Honor bypass local gateway setting

This patch make the bypass local gateway setting works

10 years agoFix multiple WWW-Authenticate headers
Hardening [Fri, 18 Apr 2014 21:08:34 +0000 (23:08 +0200)]
Fix multiple WWW-Authenticate headers

This patch fixes the case with the server trying to negociate the authentication
method and returning multiple WWW-Authenticate headers.

10 years agoAdd an helper function for the Key object
Hardening [Fri, 18 Apr 2014 21:07:43 +0000 (23:07 +0200)]
Add an helper function for the Key object

10 years agoEnhance ListDictonnary
Hardening [Fri, 18 Apr 2014 16:26:04 +0000 (18:26 +0200)]
Enhance ListDictonnary

This patch enhances ListDictionnary so that you can set callbacks for
keys and for values.

10 years agoFixes for queue and stack
Hardening [Fri, 18 Apr 2014 14:27:51 +0000 (16:27 +0200)]
Fixes for queue and stack

This patch does misc fixes in queue and stack:
* the *_new() were not handling OOM correctly ;
* the *_Contains() methods were not using the equals cb;
* the lock were not always taken when accessing internal members;

10 years agoMerge pull request #1798 from bmiklautz/fix/misc
Marc-André Moreau [Thu, 17 Apr 2014 20:29:45 +0000 (16:29 -0400)]
Merge pull request #1798 from bmiklautz/fix/misc

Cleanup and fix compiler warnings

10 years agocore/fastpath: fix compiler warning
Bernhard Miklautz [Thu, 17 Apr 2014 10:16:10 +0000 (12:16 +0200)]
core/fastpath: fix compiler warning

10 years agotransport: fix variable initialization
Bernhard Miklautz [Thu, 17 Apr 2014 10:04:26 +0000 (12:04 +0200)]
transport: fix variable initialization

Fixes possible problem when NLA is enabled and header verification fails.

10 years agowinpr-env: update Get/SetEnvironmentVariableA
Bernhard Miklautz [Thu, 17 Apr 2014 09:48:50 +0000 (11:48 +0200)]
winpr-env: update Get/SetEnvironmentVariableA

* set last error to ERROR_ENVVAR_NOT_FOUND in GetEnvironmentVariableA
  if not found
* remove unused variables in SetEnvironmentVariableA
* add more test cases

10 years agowinpr: change GetKnownSubPath to use a const path
Bernhard Miklautz [Wed, 16 Apr 2014 14:53:41 +0000 (16:53 +0200)]
winpr: change GetKnownSubPath to use a const path

10 years agosample server: fix printf format compiler warning
Bernhard Miklautz [Wed, 16 Apr 2014 08:22:53 +0000 (10:22 +0200)]
sample server: fix printf format compiler warning

10 years agosample client: fix ReceiveChannelData prototype
Bernhard Miklautz [Wed, 16 Apr 2014 08:20:47 +0000 (10:20 +0200)]
sample client: fix ReceiveChannelData prototype

10 years agoremove re-declaration of extended pipe functions
Bernhard Miklautz [Wed, 16 Apr 2014 08:13:19 +0000 (10:13 +0200)]
remove re-declaration of extended pipe functions

remove them from winpr/pipe.h since they are defined and declared
in winpr/file.h

10 years agowinpr/pipe: fix variable type - unsigned to signed
Bernhard Miklautz [Wed, 16 Apr 2014 08:05:53 +0000 (10:05 +0200)]
winpr/pipe: fix variable type - unsigned to signed

fcntl returns int. Comparison to 0 < always returned false.

10 years agoMerge pull request #1796 from hardening/nego_fix
Marc-André Moreau [Wed, 16 Apr 2014 15:25:16 +0000 (11:25 -0400)]
Merge pull request #1796 from hardening/nego_fix

Fix connection when no cookie is given

10 years agoFix connection when no cookie is given
Hardening [Wed, 16 Apr 2014 15:04:49 +0000 (17:04 +0200)]
Fix connection when no cookie is given

This patch corrects a regression introduced in 2edd8bee1208aef77f92209f737c376063681bf7

10 years agoMerge pull request #1793 from bmiklautz/fix/config_h
Marc-André Moreau [Wed, 16 Apr 2014 14:13:27 +0000 (10:13 -0400)]
Merge pull request #1793 from bmiklautz/fix/config_h

Remove config.h inclusion in debug.h

10 years agoMerge pull request #1794 from eurogiciel/sandbox/pcoval/for-upstream
Bernhard Miklautz [Wed, 16 Apr 2014 09:20:18 +0000 (11:20 +0200)]
Merge pull request #1794 from eurogiciel/sandbox/pcoval/for-upstream

fix: build error while running client/X11/generate_argument_docbook

10 years agofix: build error while running client/X11/generate_argument_docbook
Philippe Coval [Wed, 16 Apr 2014 07:53:02 +0000 (09:53 +0200)]
fix: build error while running client/X11/generate_argument_docbook

Author: Viacheslav Dubrovsk <dubrsl@altlinux.org>
Bug: https://github.com/FreeRDP/FreeRDP/issues/1481
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agoRemove config.h inclusion in debug.h
Bernhard Miklautz [Tue, 15 Apr 2014 16:36:22 +0000 (18:36 +0200)]
Remove config.h inclusion in debug.h

* update msusb to use DEBUG_MSUSB
* remove unused DEBUG_MSG

10 years agoMerge pull request #1792 from awakecoding/master
Marc-André Moreau [Tue, 15 Apr 2014 15:56:29 +0000 (11:56 -0400)]
Merge pull request #1792 from awakecoding/master

Remove Unused Extension Framework

10 years agolibfreerdp-core: remove old, unused extension framework
Marc-André Moreau [Mon, 14 Apr 2014 18:49:03 +0000 (14:49 -0400)]
libfreerdp-core: remove old, unused extension framework

10 years agoMerge pull request #1787 from hardening/oom_checks2
Marc-André Moreau [Mon, 14 Apr 2014 18:19:58 +0000 (14:19 -0400)]
Merge pull request #1787 from hardening/oom_checks2

Misc fixes to check OOM

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Mon, 14 Apr 2014 18:17:37 +0000 (14:17 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agoMerge pull request #1789 from MartinHaimberger/mh-memfixes
Marc-André Moreau [Mon, 14 Apr 2014 18:17:30 +0000 (14:17 -0400)]
Merge pull request #1789 from MartinHaimberger/mh-memfixes

Fixed misc leaks

10 years agoMerge pull request #1784 from hardening/collections_reallocs
Marc-André Moreau [Mon, 14 Apr 2014 18:17:05 +0000 (14:17 -0400)]
Merge pull request #1784 from hardening/collections_reallocs

Don't leak memory when realloc fails

10 years agoMerge pull request #1778 from awakecoding/smartcard
Marc-André Moreau [Mon, 14 Apr 2014 18:13:11 +0000 (14:13 -0400)]
Merge pull request #1778 from awakecoding/smartcard

Smart Card Complete Overhaul

10 years agochannels/smartcard: add more debug output
Marc-André Moreau [Sun, 13 Apr 2014 20:48:32 +0000 (16:48 -0400)]
channels/smartcard: add more debug output

10 years agochannels/smartcard: add more debug output
Marc-André Moreau [Sun, 13 Apr 2014 19:50:51 +0000 (15:50 -0400)]
channels/smartcard: add more debug output

10 years agolibwinpr-smartcard: improve GetStatusChange
Marc-André Moreau [Sun, 13 Apr 2014 04:43:12 +0000 (00:43 -0400)]
libwinpr-smartcard: improve GetStatusChange

10 years agolibwinpr-smartcard: implement PCSC/WinSCard reader name aliasing
Marc-André Moreau [Sun, 13 Apr 2014 03:38:15 +0000 (23:38 -0400)]
libwinpr-smartcard: implement PCSC/WinSCard reader name aliasing

10 years agochannels/smartcard: add pcsc-lite protocol value mapping
Marc-André Moreau [Sat, 12 Apr 2014 22:13:18 +0000 (18:13 -0400)]
channels/smartcard: add pcsc-lite protocol value mapping

10 years agochannels/smartcard: make PCSC implementation even closer to WinSCard
Marc-André Moreau [Sat, 12 Apr 2014 20:45:06 +0000 (16:45 -0400)]
channels/smartcard: make PCSC implementation even closer to WinSCard

10 years agochannels/smartcard: cleanup of sanitization
Marc-André Moreau [Sat, 12 Apr 2014 19:09:23 +0000 (15:09 -0400)]
channels/smartcard: cleanup of sanitization

10 years agochannels/smartcard: add more debug output, make distinction between reader and card...
Marc-André Moreau [Sat, 12 Apr 2014 18:31:54 +0000 (14:31 -0400)]
channels/smartcard: add more debug output, make distinction between reader and card state

10 years agochannels/smartcard: add more debug output
Marc-André Moreau [Sat, 12 Apr 2014 16:42:09 +0000 (12:42 -0400)]
channels/smartcard: add more debug output

10 years agolibwinpr-smartcard: fix SCardConnectW deadlock
Marc-André Moreau [Sat, 12 Apr 2014 16:15:04 +0000 (12:15 -0400)]
libwinpr-smartcard: fix SCardConnectW deadlock

10 years agolibwinpr-smartcard: fix deadlock in PCSC_SCardFreeMemory
Marc-André Moreau [Sat, 12 Apr 2014 15:24:47 +0000 (11:24 -0400)]
libwinpr-smartcard: fix deadlock in PCSC_SCardFreeMemory

10 years agochannels/smartcard: add more debug output
Marc-André Moreau [Fri, 11 Apr 2014 22:57:04 +0000 (18:57 -0400)]
channels/smartcard: add more debug output

10 years agochannels/smartcard: fix broken context/handle encoding/decoding
Marc-André Moreau [Fri, 11 Apr 2014 21:44:27 +0000 (17:44 -0400)]
channels/smartcard: fix broken context/handle encoding/decoding

10 years agochannels/smartcard: make handles completely opaque
Marc-André Moreau [Fri, 11 Apr 2014 20:27:01 +0000 (16:27 -0400)]
channels/smartcard: make handles completely opaque

10 years agochannels/smartcard: fix on Windows
Marc-André Moreau [Fri, 11 Apr 2014 18:13:06 +0000 (14:13 -0400)]
channels/smartcard: fix on Windows

10 years agochannels/smartcard: cleanup context/handle management
Marc-André Moreau [Fri, 11 Apr 2014 18:01:42 +0000 (14:01 -0400)]
channels/smartcard: cleanup context/handle management

10 years agofixed Wlog_Uninit to also free child logger
Martin Haimberger [Fri, 11 Apr 2014 09:07:50 +0000 (02:07 -0700)]
fixed Wlog_Uninit to also free child logger

10 years agousing setenv instead of putenv to prevent memleaks
Martin Haimberger [Fri, 11 Apr 2014 09:07:18 +0000 (02:07 -0700)]
using setenv instead of putenv to prevent memleaks

10 years agochannels/smartcard: added detailed debug tracing
Marc-André Moreau [Fri, 11 Apr 2014 06:17:36 +0000 (02:17 -0400)]
channels/smartcard: added detailed debug tracing

10 years agochannels/smartcard: cleanup and simplify ListReaders call
Marc-André Moreau [Fri, 11 Apr 2014 03:55:11 +0000 (23:55 -0400)]
channels/smartcard: cleanup and simplify ListReaders call

10 years agochannels/smartcard: minor fixes
Marc-André Moreau [Thu, 10 Apr 2014 21:36:42 +0000 (17:36 -0400)]
channels/smartcard: minor fixes

10 years agotcp: (Mac OS X) added setsockopt(SOL_SOCKET, SO_NOSIGPIPE) to prevent the application...
Benoît LeBlanc [Thu, 10 Apr 2014 20:26:44 +0000 (16:26 -0400)]
tcp: (Mac OS X) added setsockopt(SOL_SOCKET, SO_NOSIGPIPE) to prevent the application crashing on a broken socket.

10 years agoMisc fixes to check OOM
Hardening [Thu, 10 Apr 2014 19:07:53 +0000 (21:07 +0200)]
Misc fixes to check OOM

10 years agoMerge pull request #1786 from nfedera/fix-2014-04-10-02
Marc-André Moreau [Thu, 10 Apr 2014 17:26:47 +0000 (13:26 -0400)]
Merge pull request #1786 from nfedera/fix-2014-04-10-02

core/server: only enable activated bitmap codecs

10 years agocore/server: only enable activated bitmap codecs
Norbert Federa [Thu, 10 Apr 2014 17:13:47 +0000 (19:13 +0200)]
core/server: only enable activated bitmap codecs

10 years agoMerge pull request #1785 from nfedera/fix-2014-04-10-01
Marc-André Moreau [Thu, 10 Apr 2014 15:47:22 +0000 (11:47 -0400)]
Merge pull request #1785 from nfedera/fix-2014-04-10-01

core: fix multifragment update capability exchange

10 years agocore: fix multifragment update capability exchange
Norbert Federa [Thu, 10 Apr 2014 15:22:06 +0000 (17:22 +0200)]
core: fix multifragment update capability exchange

10 years agolibwinpr-smartcard: more pcsc-lite fixes
Marc-André Moreau [Wed, 9 Apr 2014 21:44:39 +0000 (17:44 -0400)]
libwinpr-smartcard: more pcsc-lite fixes

10 years agoDon't leak memory when realloc fails
Hardening [Wed, 9 Apr 2014 19:53:42 +0000 (21:53 +0200)]
Don't leak memory when realloc fails

10 years agolibwinpr-smartcard: add proper locking by SCARDCONTEXT for pcsc-lite
Marc-André Moreau [Wed, 9 Apr 2014 19:32:18 +0000 (15:32 -0400)]
libwinpr-smartcard: add proper locking by SCARDCONTEXT for pcsc-lite

10 years agochannels/smartcard: pcsc-lite fixes
Marc-André Moreau [Wed, 9 Apr 2014 18:27:44 +0000 (14:27 -0400)]
channels/smartcard: pcsc-lite fixes

10 years agochannels/smartcard: fix some valgrind warnings
Marc-André Moreau [Wed, 9 Apr 2014 16:28:03 +0000 (12:28 -0400)]
channels/smartcard: fix some valgrind warnings

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard
Marc-André Moreau [Wed, 9 Apr 2014 15:12:00 +0000 (11:12 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard

10 years agoMerge pull request #1775 from maksqwe/license_read_fix
Marc-André Moreau [Wed, 9 Apr 2014 15:11:01 +0000 (11:11 -0400)]
Merge pull request #1775 from maksqwe/license_read_fix

fix check for certificate_read_server_certificate()

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard
Marc-André Moreau [Wed, 9 Apr 2014 14:41:05 +0000 (10:41 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard

10 years agochannels/smartcard: don't treat certain errors as errors
Marc-André Moreau [Wed, 9 Apr 2014 14:40:52 +0000 (10:40 -0400)]
channels/smartcard: don't treat certain errors as errors

10 years agoMerge pull request #1782 from hardening/oom_cases
Marc-André Moreau [Wed, 9 Apr 2014 14:39:31 +0000 (10:39 -0400)]
Merge pull request #1782 from hardening/oom_cases

Treat OOM cases

10 years agoMerge pull request #1781 from hardening/collections_fixes
Marc-André Moreau [Wed, 9 Apr 2014 14:39:07 +0000 (10:39 -0400)]
Merge pull request #1781 from hardening/collections_fixes

Fixes in case of OOM

10 years agoTreat OOM cases
Hardening [Wed, 9 Apr 2014 14:07:06 +0000 (16:07 +0200)]
Treat OOM cases

10 years agowinpr: fix failing unit tests
Marc-André Moreau [Wed, 9 Apr 2014 14:01:58 +0000 (10:01 -0400)]
winpr: fix failing unit tests

10 years agoFixes in case of OOM
Hardening [Wed, 9 Apr 2014 13:26:43 +0000 (15:26 +0200)]
Fixes in case of OOM

10 years agoMerge pull request #1780 from hardening/http_malloc_fixes
Marc-André Moreau [Wed, 9 Apr 2014 13:21:48 +0000 (09:21 -0400)]
Merge pull request #1780 from hardening/http_malloc_fixes

Fix corner cases in http parsing

10 years agoFix corner cases in http parsing
Hardening [Wed, 9 Apr 2014 13:00:38 +0000 (15:00 +0200)]
Fix corner cases in http parsing

This patch adds checks for malloc / strdup, and free all memory
when such call fails.

10 years agolibwinpr-smartcard: fix missing link dependency
Marc-André Moreau [Wed, 9 Apr 2014 04:10:45 +0000 (00:10 -0400)]
libwinpr-smartcard: fix missing link dependency

10 years agoMerge pull request #1776 from maksqwe/fix_console_parallel_cmd_args_parse
Marc-André Moreau [Wed, 9 Apr 2014 03:56:35 +0000 (23:56 -0400)]
Merge pull request #1776 from maksqwe/fix_console_parallel_cmd_args_parse

fix check args count for 'parallel' cmd

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard
Marc-André Moreau [Wed, 9 Apr 2014 03:53:45 +0000 (23:53 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard

10 years agochannels/smartcard: improve SCardGetAttrib
Marc-André Moreau [Wed, 9 Apr 2014 03:52:24 +0000 (23:52 -0400)]
channels/smartcard: improve SCardGetAttrib

10 years agochannels/smartcard: harden parsing of expected padding
Marc-André Moreau [Wed, 9 Apr 2014 02:10:21 +0000 (22:10 -0400)]
channels/smartcard: harden parsing of expected padding

10 years agochannels/smartcard: Transmit_Return pioRecvPci implementation
Marc-André Moreau [Wed, 9 Apr 2014 01:36:47 +0000 (21:36 -0400)]
channels/smartcard: Transmit_Return pioRecvPci implementation

10 years agolibwinpr-smartcard: implement SCARD_AUTOALLOCATE
Marc-André Moreau [Wed, 9 Apr 2014 01:02:30 +0000 (21:02 -0400)]
libwinpr-smartcard: implement SCARD_AUTOALLOCATE

10 years agochannels/smartcard: fix ListReaders mszGroups parsing
Marc-André Moreau [Tue, 8 Apr 2014 22:55:50 +0000 (18:55 -0400)]
channels/smartcard: fix ListReaders mszGroups parsing

10 years agolibwinpr-smartcard: improve Mac OS X build
Marc-André Moreau [Tue, 8 Apr 2014 20:58:51 +0000 (16:58 -0400)]
libwinpr-smartcard: improve Mac OS X build

10 years agoremove unneeded check
Maks Naumov [Tue, 8 Apr 2014 19:48:17 +0000 (22:48 +0300)]
remove unneeded check

10 years agoMerge pull request #1777 from bmiklautz/issue/1771
Norbert Federa [Tue, 8 Apr 2014 17:51:40 +0000 (19:51 +0200)]
Merge pull request #1777 from bmiklautz/issue/1771

core: fixed client random size

10 years agocore: fixed client random size
Bernhard Miklautz [Tue, 8 Apr 2014 17:38:01 +0000 (19:38 +0200)]
core: fixed client random size

client random must be (bitlen / 8) + 8 - see [MS-RDPBCGR] 5.3.4.1

fixes #1771

10 years agofix check args count for 'parallel' cmd
Maks Naumov [Tue, 8 Apr 2014 17:23:02 +0000 (20:23 +0300)]
fix check args count for 'parallel' cmd

10 years agoMake certificate_read_server_certificate() return BOOL
Maks Naumov [Tue, 8 Apr 2014 12:59:34 +0000 (15:59 +0300)]
Make certificate_read_server_certificate() return BOOL

10 years agochannels/smartcard: fix GetStatusChange SCARD_E_TIMEOUT handling
Marc-André Moreau [Tue, 8 Apr 2014 16:00:04 +0000 (12:00 -0400)]
channels/smartcard: fix GetStatusChange SCARD_E_TIMEOUT handling

10 years agoMerge branch 'smartcard' of github.com:awakecoding/FreeRDP into smartcard
Marc-André Moreau [Tue, 8 Apr 2014 15:34:46 +0000 (11:34 -0400)]
Merge branch 'smartcard' of github.com:awakecoding/FreeRDP into smartcard

Conflicts:
channels/smartcard/client/smartcard_pack.c

10 years agochannels/smartcard: fix padding functions
Marc-André Moreau [Tue, 8 Apr 2014 15:32:48 +0000 (11:32 -0400)]
channels/smartcard: fix padding functions

10 years agolibwinpr-smartcard: add option to build statically against specialized pcsclite build
Marc-André Moreau [Tue, 8 Apr 2014 05:26:28 +0000 (01:26 -0400)]
libwinpr-smartcard: add option to build statically against specialized pcsclite build

10 years agochannels/smartcard: harden packing
Marc-André Moreau [Tue, 8 Apr 2014 03:45:11 +0000 (23:45 -0400)]
channels/smartcard: harden packing

10 years agochannels/smartcard: more code hardening
Marc-André Moreau [Mon, 7 Apr 2014 21:17:26 +0000 (17:17 -0400)]
channels/smartcard: more code hardening