platform/upstream/freerdp.git
10 years agoOnDataReceived function now uses a reference counted stream as argument.
Armin Novak [Wed, 11 Jun 2014 12:41:31 +0000 (14:41 +0200)]
OnDataReceived function now uses a reference counted stream as argument.

10 years agosvc_plugin now uses reference counted StreamPool.
Armin Novak [Wed, 11 Jun 2014 12:40:38 +0000 (14:40 +0200)]
svc_plugin now uses reference counted StreamPool.
Added termination function to clean up allocated resources.

10 years agoAdded stream pool shrinking if large parts are unused.
Armin Novak [Wed, 11 Jun 2014 12:38:20 +0000 (14:38 +0200)]
Added stream pool shrinking if large parts are unused.

10 years agoMerge pull request #1896 from awakecoding/sspi
Marc-André Moreau [Tue, 10 Jun 2014 22:16:51 +0000 (18:16 -0400)]
Merge pull request #1896 from awakecoding/sspi

WinPR SSPI Cleanup + Hardening

10 years agolibwinpr-sspi: fix failing test
Marc-André Moreau [Tue, 10 Jun 2014 22:09:51 +0000 (18:09 -0400)]
libwinpr-sspi: fix failing test

10 years agoMerge branch 'master' of github.com:awakecoding/FreeRDP into sspi
Marc-André Moreau [Tue, 10 Jun 2014 20:40:58 +0000 (16:40 -0400)]
Merge branch 'master' of github.com:awakecoding/FreeRDP into sspi

Conflicts:
winpr/include/winpr/timezone.h
winpr/libwinpr/timezone/timezone.c

10 years agolibwinpr-sspi: add support for querying user+domain and setting NTLM hash
Marc-André Moreau [Tue, 10 Jun 2014 20:38:16 +0000 (16:38 -0400)]
libwinpr-sspi: add support for querying user+domain and setting NTLM hash

10 years agolibwinpr-sspi: fix server-side NLA
Marc-André Moreau [Tue, 10 Jun 2014 18:38:17 +0000 (14:38 -0400)]
libwinpr-sspi: fix server-side NLA

10 years agolibwinpr-sspi: fix memory leaks
Marc-André Moreau [Tue, 10 Jun 2014 18:16:02 +0000 (14:16 -0400)]
libwinpr-sspi: fix memory leaks

10 years agolibwinpr-sspi: patch some memory leaks
Marc-André Moreau [Tue, 10 Jun 2014 12:40:04 +0000 (08:40 -0400)]
libwinpr-sspi: patch some memory leaks

10 years agowinpr: remove installable config.h header
Marc-André Moreau [Tue, 10 Jun 2014 12:24:20 +0000 (08:24 -0400)]
winpr: remove installable config.h header

10 years agolibwinpr-sspi: add custom API for passing NTLM hashes and credentials dynamically
Marc-André Moreau [Mon, 9 Jun 2014 19:25:00 +0000 (15:25 -0400)]
libwinpr-sspi: add custom API for passing NTLM hashes and credentials dynamically

10 years agolibwinpr-sspi: fix NTLM SPN context helper
Marc-André Moreau [Sun, 8 Jun 2014 13:14:49 +0000 (09:14 -0400)]
libwinpr-sspi: fix NTLM SPN context helper

10 years agolibwinpr-sspi: add tests for NTLM
Marc-André Moreau [Sat, 7 Jun 2014 22:28:02 +0000 (18:28 -0400)]
libwinpr-sspi: add tests for NTLM

10 years agolibwinpr-sspi: fix server-side negotiate module
Marc-André Moreau [Sat, 7 Jun 2014 21:08:07 +0000 (17:08 -0400)]
libwinpr-sspi: fix server-side negotiate module

10 years agolibwinpr-sspi: fix build on Linux
Marc-André Moreau [Sat, 7 Jun 2014 20:46:32 +0000 (16:46 -0400)]
libwinpr-sspi: fix build on Linux

10 years agolibwinpr-sspi: start implementing and using negotiate sspi module
Marc-André Moreau [Sat, 7 Jun 2014 20:26:57 +0000 (16:26 -0400)]
libwinpr-sspi: start implementing and using negotiate sspi module

10 years agolibwinpr-sspi: fix exporting of SSPI API
Marc-André Moreau [Sat, 7 Jun 2014 18:43:02 +0000 (14:43 -0400)]
libwinpr-sspi: fix exporting of SSPI API

10 years agoMerge pull request #1892 from alexpilotti/master
Marc-André Moreau [Sat, 7 Jun 2014 17:48:01 +0000 (13:48 -0400)]
Merge pull request #1892 from alexpilotti/master

Fixes timezone API definition issues on Windows

10 years agoFixes timezone API definition issues on Windows
Alessandro Pilotti [Sat, 7 Jun 2014 17:11:32 +0000 (20:11 +0300)]
Fixes timezone API definition issues on Windows

GetDynamicTimeZoneInformation, SetDynamicTimeZoneInformation and
GetTimeZoneInformationForYear are provided by the Windows SDK accordingly
with ethe MSDN cocumentation for SDK with versions above 7.1A.

Those functions are incorrectly included by the 7.1A SDK if _WIN32_WINNT
>= 0x0501 instead of _WIN32_WINNT >= 0x0600.

The issue arises when building with an XP compatible toolset (e.g.
v120_xp).

10 years agolibwinpr-sspi: improve link interface
Marc-André Moreau [Sat, 7 Jun 2014 14:50:51 +0000 (10:50 -0400)]
libwinpr-sspi: improve link interface

10 years agolibwinpr-sspi: even more code hardening
Marc-André Moreau [Sat, 7 Jun 2014 04:17:11 +0000 (00:17 -0400)]
libwinpr-sspi: even more code hardening

10 years agolibwinpr-sspi: code hardening
Marc-André Moreau [Fri, 6 Jun 2014 21:20:34 +0000 (17:20 -0400)]
libwinpr-sspi: code hardening

10 years agolibwinpr-sspi: make native sspi option dynamic
Marc-André Moreau [Fri, 6 Jun 2014 19:34:12 +0000 (15:34 -0400)]
libwinpr-sspi: make native sspi option dynamic

10 years agolibwinpr-sspi: isolate winpr implementation
Marc-André Moreau [Fri, 6 Jun 2014 02:54:31 +0000 (22:54 -0400)]
libwinpr-sspi: isolate winpr implementation

10 years agolibwinpr-sspi: fix native sspi build
Marc-André Moreau [Fri, 6 Jun 2014 02:10:08 +0000 (22:10 -0400)]
libwinpr-sspi: fix native sspi build

10 years agoMerge pull request #1885 from awakecoding/master
Marc-André Moreau [Wed, 4 Jun 2014 16:41:08 +0000 (12:41 -0400)]
Merge pull request #1885 from awakecoding/master

SmartCard fixes and workarounds

10 years agoMerge pull request #1875 from jbd1986/fix-rdp-file-fullscreen
Marc-André Moreau [Wed, 4 Jun 2014 16:02:30 +0000 (12:02 -0400)]
Merge pull request #1875 from jbd1986/fix-rdp-file-fullscreen

Reading RDP File: changed fullscreen constants to reflect the current states from Technet

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Wed, 4 Jun 2014 16:01:40 +0000 (12:01 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agoMerge pull request #1872 from nfedera/fix-2014-05-28-01
Marc-André Moreau [Wed, 4 Jun 2014 16:00:05 +0000 (12:00 -0400)]
Merge pull request #1872 from nfedera/fix-2014-05-28-01

winpr: rewrite named pipe sharing

10 years agoMerge pull request #1868 from akallabeth/x11_shutdown_fix
Marc-André Moreau [Wed, 4 Jun 2014 15:59:58 +0000 (11:59 -0400)]
Merge pull request #1868 from akallabeth/x11_shutdown_fix

X11 aync input shutdown fix

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Wed, 4 Jun 2014 15:56:37 +0000 (11:56 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agotransport: fix incorrect retval that caused unexpected redirect.
Vic Lee [Wed, 4 Jun 2014 07:57:27 +0000 (15:57 +0800)]
transport: fix incorrect retval that caused unexpected redirect.

10 years agoMerge pull request #1882 from hardening/nla_fix
Martin Fleisz [Wed, 4 Jun 2014 07:30:34 +0000 (09:30 +0200)]
Merge pull request #1882 from hardening/nla_fix

Nla fix

10 years agoMerge pull request #1873 from hardening/WTSVirtualChannelWriteCallers
Martin Fleisz [Tue, 3 Jun 2014 14:40:05 +0000 (16:40 +0200)]
Merge pull request #1873 from hardening/WTSVirtualChannelWriteCallers

Don't use NULL for pWrittenBytes when calling WTSVirtualChannelWrite()

10 years agoDon't leak cert in case of failure
Hardening [Tue, 3 Jun 2014 13:19:00 +0000 (15:19 +0200)]
Don't leak cert in case of failure

10 years agoFix certificate leak
Hardening [Tue, 3 Jun 2014 12:59:58 +0000 (14:59 +0200)]
Fix certificate leak

There were a leak when doing TLS in server mode

10 years agoFix metrics leak
Hardening [Tue, 3 Jun 2014 12:54:56 +0000 (14:54 +0200)]
Fix metrics leak

10 years agoFix NLA authentication for server-side
Hardening [Tue, 3 Jun 2014 09:04:35 +0000 (11:04 +0200)]
Fix NLA authentication for server-side

This patch make copies of the server public key so that the NLA
authentication can be performed server-side.

10 years agoDrop unused field
Hardening [Tue, 3 Jun 2014 09:04:12 +0000 (11:04 +0200)]
Drop unused field

10 years agolibwinpr-smartcard: avoid using pcsc-lite's buggy transaction system
Marc-André Moreau [Tue, 3 Jun 2014 01:49:49 +0000 (21:49 -0400)]
libwinpr-smartcard: avoid using pcsc-lite's buggy transaction system

10 years agochannels/smartcard: experiment with multiple card contexts
Marc-André Moreau [Mon, 2 Jun 2014 21:20:01 +0000 (17:20 -0400)]
channels/smartcard: experiment with multiple card contexts

10 years agoMerge branch 'awakecoding' of github.com:vworkspace/FreeRDP
Marc-André Moreau [Mon, 2 Jun 2014 16:08:19 +0000 (12:08 -0400)]
Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP

10 years agoModified SCardConnect/SCardDisconnect logic to prevent more than one card from being...
Mike McDonald [Mon, 2 Jun 2014 15:08:32 +0000 (11:08 -0400)]
Modified SCardConnect/SCardDisconnect logic to prevent more than one card from being connected to a context.  Trying to connect more than once to a context without doing a disconnect can cause a deadlock in the pcsclite daemon (pcscd).

10 years agoMerge pull request #1879 from awakecoding/master
Marc-André Moreau [Mon, 2 Jun 2014 02:35:13 +0000 (22:35 -0400)]
Merge pull request #1879 from awakecoding/master

Async Transport BIO full duplex support

10 years agolibwinpr-winsock: fix non-monolithic build
Marc-André Moreau [Mon, 2 Jun 2014 02:25:19 +0000 (22:25 -0400)]
libwinpr-winsock: fix non-monolithic build

10 years agolibwinpr-winsock: fix build on Windows
Marc-André Moreau [Mon, 2 Jun 2014 01:52:33 +0000 (21:52 -0400)]
libwinpr-winsock: fix build on Windows

10 years agolibfreerdp-core: replace all OpenSSL built-in BIOs by new full duplex BIOs
Marc-André Moreau [Mon, 2 Jun 2014 01:37:20 +0000 (21:37 -0400)]
libfreerdp-core: replace all OpenSSL built-in BIOs by new full duplex BIOs

10 years agolibwinpr-winsock: initial winsock implementation
Marc-André Moreau [Sun, 1 Jun 2014 19:04:28 +0000 (15:04 -0400)]
libwinpr-winsock: initial winsock implementation

10 years agolibfreerdp-core: remove ineffective full duplex locks
Marc-André Moreau [Sun, 1 Jun 2014 15:20:13 +0000 (11:20 -0400)]
libfreerdp-core: remove ineffective full duplex locks

10 years agoMerge branch 'master' of github.com:awakecoding/FreeRDP
Marc-André Moreau [Sun, 1 Jun 2014 14:46:58 +0000 (10:46 -0400)]
Merge branch 'master' of github.com:awakecoding/FreeRDP

10 years agolibfreerdp-core: fail more gracefully when transport thread dies
Marc-André Moreau [Sun, 1 Jun 2014 14:46:43 +0000 (10:46 -0400)]
libfreerdp-core: fail more gracefully when transport thread dies

10 years agolibwinpr-utils: add WLog support for Win32 debugger console output
Marc-André Moreau [Sat, 31 May 2014 14:10:19 +0000 (10:10 -0400)]
libwinpr-utils: add WLog support for Win32 debugger console output

10 years agoMerge pull request #1877 from awakecoding/master
Marc-André Moreau [Fri, 30 May 2014 19:35:46 +0000 (15:35 -0400)]
Merge pull request #1877 from awakecoding/master

WLog, Transport, Gateway, Time

10 years agolibfreerdp-core: fix build on Windows
Marc-André Moreau [Fri, 30 May 2014 19:29:06 +0000 (15:29 -0400)]
libfreerdp-core: fix build on Windows

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Fri, 30 May 2014 19:06:07 +0000 (15:06 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

Conflicts:
libfreerdp/core/transport.c

10 years agolibfreerdp-core: add locks to disable full duplex BIOs (currently unsafe)
Marc-André Moreau [Fri, 30 May 2014 18:53:10 +0000 (14:53 -0400)]
libfreerdp-core: add locks to disable full duplex BIOs (currently unsafe)

10 years agolibfreerdp-core: fix VerifyX509Certificate to make distinction between gateway and...
Marc-André Moreau [Fri, 30 May 2014 18:36:18 +0000 (14:36 -0400)]
libfreerdp-core: fix VerifyX509Certificate to make distinction between gateway and direct connection

10 years agolibfreerdp-core: add connection timeout, fix gateway bypass local
Marc-André Moreau [Fri, 30 May 2014 18:03:20 +0000 (14:03 -0400)]
libfreerdp-core: add connection timeout, fix gateway bypass local

10 years agotransport: add another null pointer check.
Vic Lee [Fri, 30 May 2014 17:08:00 +0000 (01:08 +0800)]
transport: add another null pointer check.

10 years agolibfreerdp-common: add freerdp_update_gateway_usage_method helper
Marc-André Moreau [Fri, 30 May 2014 16:55:17 +0000 (12:55 -0400)]
libfreerdp-common: add freerdp_update_gateway_usage_method helper

10 years agolibfreerdp-core: add gateway-usage-method command line option, avoid resetting BIO...
Marc-André Moreau [Fri, 30 May 2014 16:31:26 +0000 (12:31 -0400)]
libfreerdp-core: add gateway-usage-method command line option, avoid resetting BIO flags we shouldn't reset

10 years agotransport: add a null pointer check.
Vic Lee [Fri, 30 May 2014 15:34:04 +0000 (23:34 +0800)]
transport: add a null pointer check.

10 years agordpsnd/server: fix incorrect use of channe handle.
Vic Lee [Fri, 30 May 2014 15:00:15 +0000 (23:00 +0800)]
rdpsnd/server: fix incorrect use of channe handle.

10 years agotcp: add timeout to prevent buggy client from hanging.
Vic Lee [Fri, 30 May 2014 14:30:21 +0000 (22:30 +0800)]
tcp: add timeout to prevent buggy client from hanging.

10 years agoMerge pull request #1874 from hardening/CVE-2014-0250
Marc-André Moreau [Fri, 30 May 2014 02:28:13 +0000 (22:28 -0400)]
Merge pull request #1874 from hardening/CVE-2014-0250

Fixes for CVE-2014-0250

10 years agolibwinpr-timezone: fix build on Windows
Marc-André Moreau [Fri, 30 May 2014 01:29:24 +0000 (21:29 -0400)]
libwinpr-timezone: fix build on Windows

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Thu, 29 May 2014 23:27:11 +0000 (19:27 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agoMerge github.com:mrthebunny/FreeRDP
Marc-André Moreau [Thu, 29 May 2014 19:45:48 +0000 (15:45 -0400)]
Merge github.com:mrthebunny/FreeRDP

10 years agolibwinpr-utils: add WLOG_PREFIX environment variable
Marc-André Moreau [Thu, 29 May 2014 19:42:32 +0000 (15:42 -0400)]
libwinpr-utils: add WLOG_PREFIX environment variable

10 years agolibwinpr-utils: add support for fine grained wlog filter
Marc-André Moreau [Thu, 29 May 2014 19:23:15 +0000 (15:23 -0400)]
libwinpr-utils: add support for fine grained wlog filter

10 years agolibwinpr-sysinfo: implement GetSystemTime, GetLocalTime
Marc-André Moreau [Thu, 29 May 2014 16:39:09 +0000 (12:39 -0400)]
libwinpr-sysinfo: implement GetSystemTime, GetLocalTime

10 years agolibwinpr-timezone: stub functions
Marc-André Moreau [Thu, 29 May 2014 15:58:53 +0000 (11:58 -0400)]
libwinpr-timezone: stub functions

10 years agoChanged fullscreen value to reflect the current states from http://technet.microsoft...
Justin DeFields [Thu, 29 May 2014 15:48:38 +0000 (11:48 -0400)]
Changed fullscreen value to reflect the current states from technet.microsoft.com/en-us/library/ff393692(v=ws.10).aspx

10 years agoCheck that bpp has reasonable value
Hardening [Thu, 29 May 2014 08:12:02 +0000 (10:12 +0200)]
Check that bpp has reasonable value

As bpp is often used for malloc computations, let's check that it has
a reasonable value.

10 years agoCheck for bpp > 0
Hardening [Thu, 29 May 2014 07:24:59 +0000 (09:24 +0200)]
Check for bpp > 0

Bpp == 0 just makes no sense

10 years agotls_prepare: suppressed a warning on Mac
Benoît LeBlanc [Thu, 29 May 2014 01:33:30 +0000 (21:33 -0400)]
tls_prepare: suppressed a warning on Mac

10 years agoSet checks to be strict and also check xorBpp field
Hardening [Wed, 28 May 2014 22:12:48 +0000 (00:12 +0200)]
Set checks to be strict and also check xorBpp field

This patch:
* renames bpp to xorBpp ;
* changes checks to strict ;
* adds checks on the xorBpp field

10 years agoFixes for CVE-2014-0250
Hardening [Wed, 28 May 2014 21:07:00 +0000 (23:07 +0200)]
Fixes for CVE-2014-0250

This patch introduce misc checks when receiving pointer updates. We check
that the cursor are in the bounds defined by the spec. We also check that
the announced mask sizes are what they should be.

10 years agoDon't use NULL for pWrittenBytes when calling WTSVirtualChannelWrite()
Hardening [Wed, 28 May 2014 15:04:24 +0000 (17:04 +0200)]
Don't use NULL for pWrittenBytes when calling WTSVirtualChannelWrite()

Nothing in the MSDN API says that setting NULL is safe. And if the
implementation uses WriteFile directly, it crashes.

10 years agolibwinpr-utils: extend wlog prefix format
Marc-André Moreau [Wed, 28 May 2014 14:38:32 +0000 (10:38 -0400)]
libwinpr-utils: extend wlog prefix format

10 years agowinpr: fixed non monolithic build issue
Norbert Federa [Wed, 28 May 2014 14:22:32 +0000 (16:22 +0200)]
winpr: fixed non monolithic build issue

10 years agowinpr: rewrite named pipe sharing
Norbert Federa [Wed, 28 May 2014 11:54:08 +0000 (13:54 +0200)]
winpr: rewrite named pipe sharing

Since commit 5e09e37d42bd8896a687df830a95f5cb56e4d47c was basically unfixable,
here is a slightly different approach that should hopefully solve all
discovered issues and race conditions.

10 years agoAbortion check now just tests for quit in the queue.
Armin Novak [Tue, 27 May 2014 07:32:58 +0000 (09:32 +0200)]
Abortion check now just tests for quit in the queue.

10 years agolibwinpr-smartcard: add logging for each calls in smartcard inspector
Marc-André Moreau [Mon, 26 May 2014 21:54:39 +0000 (17:54 -0400)]
libwinpr-smartcard: add logging for each calls in smartcard inspector

10 years agoNow processing input messages in async thread.
Armin Novak [Mon, 26 May 2014 20:54:34 +0000 (22:54 +0200)]
Now processing input messages in async thread.

10 years agoMerge pull request #1866 from nfedera/fix-2014-05-26-01
Marc-André Moreau [Mon, 26 May 2014 20:20:28 +0000 (16:20 -0400)]
Merge pull request #1866 from nfedera/fix-2014-05-26-01

winpr: fixed incorrect pipe reference count usage

10 years agolibwinpr-smartcard: start smartcard API inspector
Marc-André Moreau [Mon, 26 May 2014 19:57:37 +0000 (15:57 -0400)]
libwinpr-smartcard: start smartcard API inspector

10 years agowinpr: fixed incorrect pipe reference count usage
Norbert Federa [Mon, 26 May 2014 19:24:34 +0000 (21:24 +0200)]
winpr: fixed incorrect pipe reference count usage

- refcount is only relevant for servermode
- refcount was used uninitialized in clientmode
- credit for fix goes to @bmiklautz

Bug was introduced by 5e09e37d42bd8896a687df830a95f5cb56e4d47c

10 years agocmake: add option to override default library type for complex submodules
Marc-André Moreau [Mon, 26 May 2014 18:46:42 +0000 (14:46 -0400)]
cmake: add option to override default library type for complex submodules

10 years agoFixed input_thread shutdown issue if not initiated by user.
Armin Novak [Mon, 26 May 2014 17:09:25 +0000 (19:09 +0200)]
Fixed input_thread shutdown issue if not initiated by user.

10 years agoMerge pull request #1865 from awakecoding/master
Marc-André Moreau [Mon, 26 May 2014 17:01:40 +0000 (13:01 -0400)]
Merge pull request #1865 from awakecoding/master

Compression Cleanup

10 years agoMerge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Mon, 26 May 2014 16:43:43 +0000 (12:43 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP

10 years agolibfreerdp-codec: cleanup context state flushing
Marc-André Moreau [Mon, 26 May 2014 16:43:30 +0000 (12:43 -0400)]
libfreerdp-codec: cleanup context state flushing

10 years agolibfreerdp-core: add new protocol metrics module
Marc-André Moreau [Mon, 26 May 2014 16:30:58 +0000 (12:30 -0400)]
libfreerdp-core: add new protocol metrics module

10 years agoMerge pull request #1864 from MartinHaimberger/namedpipefix
Marc-André Moreau [Mon, 26 May 2014 12:10:28 +0000 (08:10 -0400)]
Merge pull request #1864 from MartinHaimberger/namedpipefix

fixed introduced winpr bug in namedpipes

10 years agofixed introduced winpr bug in namedpipes
Martin Haimberger [Mon, 26 May 2014 10:04:22 +0000 (03:04 -0700)]
fixed introduced winpr bug in namedpipes

Bug was introduced by 5e09e37d42bd8896a687df830a95f5cb56e4d47c

10 years agoMerge pull request #1863 from awakecoding/master
Marc-André Moreau [Mon, 26 May 2014 01:59:36 +0000 (21:59 -0400)]
Merge pull request #1863 from awakecoding/master

RDP6.1 XCrush Bulk Compression

10 years agolibfreerdp-codec: fix xcrush level-1 compressor
Marc-André Moreau [Mon, 26 May 2014 01:39:25 +0000 (21:39 -0400)]
libfreerdp-codec: fix xcrush level-1 compressor

10 years agolibfreerdp-codec: cleanup and fix XCrush context flush synchronization
Marc-André Moreau [Mon, 26 May 2014 01:21:51 +0000 (21:21 -0400)]
libfreerdp-codec: cleanup and fix XCrush context flush synchronization