Pawel Jakub Dawidek [Tue, 7 Feb 2012 12:38:27 +0000 (13:38 +0100)]
Implement server-side support for slow-path Input Event PDU.
Marc-André Moreau [Tue, 7 Feb 2012 02:31:27 +0000 (18:31 -0800)]
Merge pull request #402 from pjd/disconnect
Graceful exit.
Pawel Jakub Dawidek [Mon, 6 Feb 2012 21:37:18 +0000 (22:37 +0100)]
After DEACTIVATE ALL PDU server can send MCS Disconnect Provider Ultimatum PDU to disconnect.
Handle such condition and exit from xfreerdp gracefully (almost, exit status is still != 0).
Marc-André Moreau [Mon, 6 Feb 2012 21:42:47 +0000 (13:42 -0800)]
Merge pull request #401 from pjd/fixes
Better length checking and Windows XP fix.
Pawel Jakub Dawidek [Mon, 6 Feb 2012 21:34:16 +0000 (22:34 +0100)]
Windows XP can send short (and non-standard) DEACTIVATE_ALL PDUs. Handle them properly.
Pawel Jakub Dawidek [Mon, 6 Feb 2012 21:31:41 +0000 (22:31 +0100)]
Better packet length checking.
Marc-André Moreau [Sat, 4 Feb 2012 23:18:54 +0000 (18:18 -0500)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Sat, 4 Feb 2012 23:18:46 +0000 (18:18 -0500)]
xfreerdp-server: improve XShm encoding
Marc-André Moreau [Sat, 4 Feb 2012 20:16:41 +0000 (15:16 -0500)]
libfreerdp-core: added --certificate-name option for explicitly specifying a certificate name
Marc-André Moreau [Sat, 4 Feb 2012 20:04:03 +0000 (15:04 -0500)]
libfreerdp-core: improve and clarify certificate checking
Marc-André Moreau [Sat, 4 Feb 2012 07:21:49 +0000 (02:21 -0500)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Sat, 4 Feb 2012 07:21:39 +0000 (02:21 -0500)]
libfreerdp-core: added check for certificate name against hostname
Marc-André Moreau [Fri, 3 Feb 2012 23:07:43 +0000 (15:07 -0800)]
Merge pull request #397 from NiKiZe/master
Remove duplicate xfree in cliprdr_process_format_list
Christian Nilsson [Fri, 3 Feb 2012 23:04:41 +0000 (00:04 +0100)]
Fix duplicate xfree on format_name->name, shuld resolve Issue #387 and #395 ?
Marc-André Moreau [Fri, 3 Feb 2012 15:59:35 +0000 (07:59 -0800)]
Merge pull request #396 from celsius/master
remove redundant or useless (?) checks for NULL pointer
Marc-André Moreau [Fri, 3 Feb 2012 15:49:38 +0000 (07:49 -0800)]
Merge pull request #394 from pjd/fixes
Plug memory leak in case of an empty file and terminate string with '\0'.
Alexis Moinet [Fri, 3 Feb 2012 14:27:04 +0000 (15:27 +0100)]
remove redundant if(NULL) checks (already checked inside of cache_free and rail_free)
Besides "ptr=NULL; free(ptr);" does nothing so no need to check for NULL in xfree()
Pawel Jakub Dawidek [Fri, 3 Feb 2012 13:44:45 +0000 (14:44 +0100)]
Fix problem where we check errno even for status == 0. This way when connection was properly terminated, but errno had EAGAIN value from before, we looped idenfiniately.
Pawel Jakub Dawidek [Fri, 3 Feb 2012 08:00:39 +0000 (09:00 +0100)]
Plug memory leak in case of an empty file and terminate string with '\0'.
Marc-André Moreau [Thu, 2 Feb 2012 23:33:26 +0000 (18:33 -0500)]
libfreerdp-core: change certificate store directory name to match OpenSSL
Marc-André Moreau [Thu, 2 Feb 2012 23:20:02 +0000 (18:20 -0500)]
libfreerdp-core: merging certificate.c with certstore.c
Marc-André Moreau [Thu, 2 Feb 2012 22:36:16 +0000 (17:36 -0500)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Thu, 2 Feb 2012 22:36:07 +0000 (17:36 -0500)]
libfreerdp-utils: refactoring of certificate store
Marc-André Moreau [Thu, 2 Feb 2012 22:25:12 +0000 (14:25 -0800)]
Merge pull request #392 from pjd/fixes
Remove the "extended" flag from VK_DIVIDE. It was breaking '?' in my environment.
Pawel Jakub Dawidek [Thu, 2 Feb 2012 22:21:10 +0000 (23:21 +0100)]
Remove the "extended" flag from VK_DIVIDE. It was breaking '?' in my environment.
Marc-André Moreau [Thu, 2 Feb 2012 21:49:37 +0000 (13:49 -0800)]
Merge pull request #391 from pjd/fixes
Fixes for ber_write_integer().
Pawel Jakub Dawidek [Thu, 2 Feb 2012 20:48:56 +0000 (21:48 +0100)]
According to specification bits from the first octet and bit 8 from the second octet (if there is more than one octet) shall not all be ones.
Before that change integer >= 0xFF80 was encoded into two bytes instead of three.
While here also add support for encoding integers into three bytes.
Marc-André Moreau [Thu, 2 Feb 2012 18:17:02 +0000 (10:17 -0800)]
Merge pull request #390 from pjd/fixes
Add missing two bytes for pad2Octets field in FASTPATH_UPDATETYPE_SYNCHRONIZE packet.
Pawel Jakub Dawidek [Thu, 2 Feb 2012 16:34:19 +0000 (17:34 +0100)]
Add missing two bytes for pad2Octets field in FASTPATH_UPDATETYPE_SYNCHRONIZE packet.
Marc-André Moreau [Thu, 2 Feb 2012 03:40:36 +0000 (22:40 -0500)]
xfreerdp-server: adjust capture settings for better performance
Marc-André Moreau [Thu, 2 Feb 2012 03:05:01 +0000 (22:05 -0500)]
xfreerdp-server: control frame rate per second
Marc-André Moreau [Thu, 2 Feb 2012 02:37:11 +0000 (21:37 -0500)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Thu, 2 Feb 2012 02:37:01 +0000 (21:37 -0500)]
xfreerdp-server: added frame tick event
Marc-André Moreau [Thu, 2 Feb 2012 02:11:46 +0000 (21:11 -0500)]
libfreerdp-core: fix more memory leaks
Marc-André Moreau [Wed, 1 Feb 2012 23:51:41 +0000 (18:51 -0500)]
libfreerdp-utils: fix realloc on null pointer in arguments parsing
Marc-André Moreau [Wed, 1 Feb 2012 23:42:20 +0000 (18:42 -0500)]
libfreerdp-core: fix multiple memory leaks detected by valgrind
Marc-André Moreau [Wed, 1 Feb 2012 22:28:12 +0000 (17:28 -0500)]
cliprdr: fix realloc on null pointer
Marc-André Moreau [Wed, 1 Feb 2012 17:02:45 +0000 (09:02 -0800)]
Merge pull request #384 from nfedera/redirectsegvfix
core: fixed segfault caused by double free of password_cookie blob
Norbert Federa [Wed, 1 Feb 2012 16:58:06 +0000 (17:58 +0100)]
core: fixed segfault caused by double free of password_cookie blob
Marc-André Moreau [Wed, 1 Feb 2012 02:05:47 +0000 (21:05 -0500)]
xfreerdp-server: optimize screen region encoding
Marc-André Moreau [Tue, 31 Jan 2012 21:28:23 +0000 (16:28 -0500)]
xfreerdp-server: fix event queuing
Marc-André Moreau [Tue, 31 Jan 2012 19:10:12 +0000 (14:10 -0500)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Tue, 31 Jan 2012 19:09:55 +0000 (14:09 -0500)]
xfreerdp-server: fix memory leak for snapshots
Otavio Salvador [Tue, 31 Jan 2012 16:35:24 +0000 (08:35 -0800)]
Merge pull request #382 from mfleisz/master
Init update->SuppressOutput for clients too
Martin Fleisz [Tue, 31 Jan 2012 16:11:22 +0000 (08:11 -0800)]
Init update->SuppressOutput for clients too
Otavio Salvador [Tue, 31 Jan 2012 15:33:23 +0000 (07:33 -0800)]
Merge pull request #381 from pjd/bitmap
Each bitmap send by the server contains color depth. Even if we negotiated 8bpp server can send bitmap which has 16bpp.
Pawel Jakub Dawidek [Tue, 31 Jan 2012 13:33:49 +0000 (14:33 +0100)]
Each bitmap send by the server contains color depth. Even if we negotiated 8bpp server can send bitmap which has 16bpp.
Fix a crash using bpp to allocate image from the bitmap data instead of negotiated color depth.
Marc-André Moreau [Tue, 31 Jan 2012 12:44:58 +0000 (04:44 -0800)]
Merge pull request #380 from pjd/stream
Use stream API instead of accessing stream fields directly.
Marc-André Moreau [Tue, 31 Jan 2012 12:37:47 +0000 (04:37 -0800)]
Merge pull request #379 from pjd/certificate
Use stream_attach() so that the 'size' field in the stream structure is properly set.
Pawel Jakub Dawidek [Tue, 31 Jan 2012 12:34:26 +0000 (13:34 +0100)]
Use stream API instead of accessing stream fields directly.
This include use of stream_attach(), so 'size' is properly set.
Pawel Jakub Dawidek [Tue, 31 Jan 2012 11:06:35 +0000 (12:06 +0100)]
Use stream_attach() so that the 'size' field in the stream structure
is properly set. This allows to assert in stream API that we don't
try to access memory outside stream buffer.
Marc-André Moreau [Tue, 31 Jan 2012 06:55:37 +0000 (22:55 -0800)]
Merge pull request #378 from adambprotiviti/redir-pw-fix
Fixed RDS Farm Redirection
Adam Brand [Tue, 31 Jan 2012 04:54:29 +0000 (20:54 -0800)]
Final commit for fixing password issue; removed debug strings.
Adam Brand [Tue, 31 Jan 2012 04:49:27 +0000 (20:49 -0800)]
Fixed issue with RDS farm redirection and passwords.
Marc-André Moreau [Tue, 31 Jan 2012 03:46:02 +0000 (22:46 -0500)]
xfreerdp-server: add event queue
Marc-André Moreau [Tue, 31 Jan 2012 02:35:15 +0000 (21:35 -0500)]
xfreerdp-server: adding xf_event.c and xf_input.c, refactoring
Adam Brand [Tue, 31 Jan 2012 02:33:46 +0000 (18:33 -0800)]
Fixed some obvious things; still doesn't work.
Adam Brand [Tue, 31 Jan 2012 01:54:46 +0000 (17:54 -0800)]
First attempt at fixing the password issue; this segfaults unfortunately.
Marc-André Moreau [Tue, 31 Jan 2012 01:35:33 +0000 (20:35 -0500)]
xfreerdp-server: add better path detection support for finding server keys
Marc-André Moreau [Mon, 30 Jan 2012 22:47:55 +0000 (17:47 -0500)]
libfreerdp-utils: extend file utils to do path detection
Marc-André Moreau [Mon, 30 Jan 2012 15:18:33 +0000 (10:18 -0500)]
libfreerdp-core: defined boolean as int on windows
Otavio Salvador [Mon, 30 Jan 2012 13:44:32 +0000 (05:44 -0800)]
Merge pull request #376 from bmiklautz/w32typedef
Fix for issue #374.
Bernhard Miklautz [Mon, 30 Jan 2012 11:05:50 +0000 (12:05 +0100)]
Fix for issue #374.
Marc-André Moreau [Sun, 29 Jan 2012 20:05:34 +0000 (15:05 -0500)]
libfreerdp-core: fix code style in gcc.c
Marc-André Moreau [Sun, 29 Jan 2012 19:49:54 +0000 (14:49 -0500)]
libfreerdp-core: fix reconnection for non IP-based redirection
Marc-André Moreau [Sun, 29 Jan 2012 16:11:13 +0000 (11:11 -0500)]
wfreerdp: fix mingw64 cross-compilation (Felix Wolfheimer)
Marc-André Moreau [Fri, 27 Jan 2012 02:22:15 +0000 (18:22 -0800)]
Merge pull request #371 from bmiklautz/osxdisableffmpeg
build: make ffmpeg optional on os x
Bernhard Miklautz [Fri, 27 Jan 2012 01:32:06 +0000 (02:32 +0100)]
build: make ffmpeg optional on os x
FFMPEG isn't installed per default on os x so it should be optional
instead of suggested.
Marc-André Moreau [Fri, 27 Jan 2012 01:29:07 +0000 (17:29 -0800)]
Merge pull request #370 from bmiklautz/buildfixes
build: raise an error if pkg is not found
Bernhard Miklautz [Fri, 27 Jan 2012 01:13:08 +0000 (02:13 +0100)]
build: raise an error if pkg is not found
Changed FFmpeg, PCSC and PulseAudio cmake find to raise an error if
an required package was not found.
Marc-André Moreau [Wed, 25 Jan 2012 16:30:16 +0000 (08:30 -0800)]
Merge pull request #368 from pjd/crypto
Server-side Standard RDP Security support.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 16:08:10 +0000 (17:08 +0100)]
Add glue that enables server-side support for Standard RDP Security.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 16:04:19 +0000 (17:04 +0100)]
- Ignore received encryption_method and encryption_level if we don't support encryption.
- Print a warning if we receive unregognized type.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 16:00:40 +0000 (17:00 +0100)]
Add complete implementation of gcc_write_server_security_data() function
that implements server-side Standard RDP Security.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:57:23 +0000 (16:57 +0100)]
Add rdp_server_establish_keys() function that is responsible for
establishing encryption keys for server-side Standard RDP Security.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:55:03 +0000 (16:55 +0100)]
Add a note why we are skipping 8 bytes.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:52:32 +0000 (16:52 +0100)]
Add fields to store RSA key for server-side Standard RDP Security.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:45:21 +0000 (16:45 +0100)]
Add API to load RSA key for Standard RDP Security in server mode.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:32:56 +0000 (16:32 +0100)]
- Don't fill client_random with 0x5e, we are going to fill it up with
random data in the next line.
- Use less magic numbers.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:30:54 +0000 (16:30 +0100)]
Add missing decryption.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:27:00 +0000 (16:27 +0100)]
White-space fixes.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:26:32 +0000 (16:26 +0100)]
Correct style.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:25:22 +0000 (16:25 +0100)]
Add a comment explaining why we always encode length in two bytes, eventhough we could use one byte sometimes.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:08:14 +0000 (16:08 +0100)]
Add Standard RDP encryption suport for fastpath. Both input and output.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:07:15 +0000 (16:07 +0100)]
Add some FASTPATH_INPUT_* enums.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:06:31 +0000 (16:06 +0100)]
Add --secure-checksum option that will enable usage of salted checksums
with Standard RDP encryption.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 15:00:16 +0000 (16:00 +0100)]
Simplify code by using per_read_length() instead of reimplementing it.
Pawel Jakub Dawidek [Wed, 25 Jan 2012 10:12:37 +0000 (11:12 +0100)]
MCS data header might be 7 or 8 bytes long, depending on the length.
To reduce confusion a bit rename MCS_SEND_DATA_HEADER_LENGTH to
MCS_SEND_DATA_HEADER_MAX_LENGTH and also rename other defines that use
MCS_SEND_DATA_HEADER_MAX_LENGTH.
Pawel Jakub Dawidek [Tue, 24 Jan 2012 14:58:30 +0000 (15:58 +0100)]
Add support for SEC_SECURE_CHECKSUM and FASTPATH_OUTPUT_SECURE_CHECKSUM flags.
Pawel Jakub Dawidek [Tue, 24 Jan 2012 14:57:06 +0000 (15:57 +0100)]
Use rdp_read_security_header() to read security header.
Pawel Jakub Dawidek [Tue, 24 Jan 2012 14:49:27 +0000 (15:49 +0100)]
We calculate checksum on plain text, so we must have already decrypt it, which means decrypt_use_count is off by one. Account for this.
Pawel Jakub Dawidek [Mon, 23 Jan 2012 21:29:33 +0000 (22:29 +0100)]
Fix typo: use & instead of | to check for flags. This fixes detection of requested protocols.
Marc-André Moreau [Wed, 25 Jan 2012 16:02:06 +0000 (08:02 -0800)]
Merge pull request #367 from jiten19/nscodec
nscodec final color bug fix
cool [Wed, 25 Jan 2012 08:06:48 +0000 (21:06 -1100)]
nscodec final color bug fix
Marc-André Moreau [Tue, 24 Jan 2012 19:23:02 +0000 (11:23 -0800)]
Merge pull request #365 from pjd/transport
Handle short writes properly in transport_write().
Marc-André Moreau [Tue, 24 Jan 2012 19:22:41 +0000 (11:22 -0800)]
Merge pull request #364 from bmiklautz/enablerfxneon
build: Added option WITH_NEON
Pawel Jakub Dawidek [Tue, 24 Jan 2012 10:42:30 +0000 (11:42 +0100)]
Handle short writes properly in transport_write().
Before this change if short write (send) occured, we were trying to
resend without updating length variable, so we were trying to send
too much and the following undefined data were causing the other
side to terminate connection.
Bernhard Miklautz [Tue, 24 Jan 2012 08:04:02 +0000 (09:04 +0100)]
build: Added option WITH_NEON
Enables neon optimized rfx decoder
Marc-André Moreau [Mon, 23 Jan 2012 18:18:47 +0000 (10:18 -0800)]
Merge pull request #363 from pjd/crypto
rdp_client_establish_keys() simplifications.
Marc-André Moreau [Mon, 23 Jan 2012 18:18:20 +0000 (10:18 -0800)]
Merge pull request #362 from bmiklautz/buildsystemfixes
Build system fixes