David Fort
3b670703fb
Merge pull request #4277 from akallabeth/mac_server
...
Mac fixes
2017-12-12 10:40:14 +01:00
David Fort
41823080f9
Fix users of Stream_GetPosition() that returns size_t
2017-12-11 22:38:58 +01:00
David Fort
11ee81be60
Fix XRandr for old systems and MacOSX
...
We need a recent enough version of XRandr to correctly detect monitor.
Also this patch adds some typo or style fixes.
2017-12-08 10:59:38 +01:00
KOVACS Krisztian
7f5f40d392
core/nla: use RedirectionPassword if set in settings
...
Previously, the code prompted for the password even if a RedirectionPassword
was provided.
With this change the prompt is only shown if both settins->Password and
settings->RedirectionPassword is absent.
2017-12-06 16:32:56 +01:00
KOVACS Krisztian
6518e36c70
Revert "core/connection: use redirection password when reconnecting"
...
This reverts commit 70c65e70d1
.
2017-12-06 14:58:34 +01:00
daixj
d10448fde2
Fix #4291 : xfreerdp segfault when connecting freerdp-shadow-cli
2017-11-29 05:12:40 -05:00
David Fort
cf33966f2e
Merge pull request #4282 from akallabeth/force_ipv6
...
Fix #4281 : Added option to prefer IPv6 over IPv4
2017-11-28 10:48:53 +01:00
Armin Novak
3e4c274cc9
Fixed channel count exceed checks
...
The check aborted on CHANNEL_MAX_COUNT - 1 instead
of correctly at CHANNEL_MAX_COUNT
2017-11-28 09:40:04 +01:00
David Fort
2f4a2f8595
Merge pull request #4272 from akallabeth/static_channel_checks
...
Fix #3378 : 31 static channels are supported.
2017-11-27 22:46:23 +01:00
Bernhard Miklautz
baf52f529f
Merge pull request #4261 from akallabeth/doc_ssl_store
...
Fix #3890 : Point to OpenSSL doc for private CA
2017-11-27 11:46:54 +01:00
Armin Novak
2cc64298f2
Fix #4281 : Added option to prefer IPv6 over IPv4
2017-11-27 11:43:54 +01:00
Bernhard Miklautz
aa47c8ebe8
Merge pull request #4268 from akallabeth/big_endian_fixes
...
Fix ZGfx decoder on big endian
2017-11-24 15:44:15 +01:00
Armin Novak
57958cb178
Fixed #3810 : Renamed color functions
2017-11-24 13:21:43 +01:00
Armin Novak
13e0d56574
Fixed endianess issues with ncrush.
2017-11-24 12:03:46 +01:00
David Fort
27807bea2b
Merge pull request #4271 from akallabeth/surface_c
...
Fixed return value check for callbacks.
2017-11-24 11:14:17 +01:00
Armin Novak
377bfeb227
Fix #3378 : 31 static channels are supported.
2017-11-23 16:18:44 +01:00
David Fort
d982cf0e90
Merge pull request #4255 from akallabeth/rfx_fix
...
Fix #4253 : Rfx decode tile width.
2017-11-23 15:35:52 +01:00
Armin Novak
f68bc07a22
Fixed return value check for callbacks.
2017-11-23 15:10:42 +01:00
akallabeth
71e38a4ce7
Merge pull request #4267 from ondrejholy/autofips
...
Enable FIPS mode automatically
2017-11-23 10:49:15 +01:00
Ondrej Holy
74bbbdb5c3
Remove unused variable
...
Unused variable was added together with FIPS mode support, let's remove it.
2017-11-23 10:09:17 +01:00
Ondrej Holy
6973b14eed
Enable FIPS mode automatically
...
FreeRDP aborts if OpenSSL operates in FIPS mode and +fipsmode is not
manually specified. Let's prevent the abortion and enable the necessary
options in that case automatically.
2017-11-23 10:09:17 +01:00
Armin Novak
dbdc4f4933
Fixed endianess issues of zgfx decoder.
2017-11-23 09:32:29 +01:00
David Fort
a834ef8243
Merge pull request #4251 from akallabeth/openssl_warn_fixes
...
Fix #4247 : warnings introduced with #3904
2017-11-23 09:22:02 +01:00
cedrozor
49f4b2a42e
Fixed NLA for Negotiate and NTLM authentication (regression due to the recent addition of kerberos support)
2017-11-21 16:36:47 +01:00
Armin Novak
12a9b9a0b4
Fix #3890 : Point to OpenSSL doc for private CA
2017-11-21 11:47:33 +01:00
Armin Novak
a376656b3c
Disabled ceritficate signature check.
2017-11-21 11:37:42 +01:00
Armin Novak
b1d2053ad1
Fix #4101 : Rfx decode tile width.
2017-11-21 11:08:16 +01:00
Armin Novak
24233b299c
Fix #4111 : 15bpp color handling for brush.
2017-11-20 15:00:09 +01:00
Armin Novak
4fe12b0ea3
Fix #4247 : warnings introduced with #3904
2017-11-20 10:18:15 +01:00
akallabeth
b156b937fe
Merge pull request #3904 from bjcollins/master
...
FIPS Mode support for xfreerdp
2017-11-17 13:31:43 +01:00
Martin Fleisz
4ff1251488
Merge pull request #4236 from akallabeth/scan_fix_remastered
...
Scanbuild warning fixes
2017-11-17 13:02:46 +01:00
Brent Collins
9ca9df1ead
Make the new winpr_Digest*MD5_Allow_FIPS functions more generic to no longer be MD5 specific in design. This way the FIPS override
...
could easily be extended to more digests in the future. For now, an attempt to use these functions with anything other than MD5 will
not work.
2017-11-17 12:43:07 +01:00
Brent Collins
e47123f05a
Do not initialize SSL in freerdp_context_new, it is too early to detect the fips enabled flag
...
and is redundant since it is initialized later before actually using SSL.
2017-11-17 12:43:07 +01:00
Brent Collins
68ab485e63
Fix logic error in reworked MD5 call for establishing keys, and fix some minor whitespace issues.
2017-11-17 12:43:07 +01:00
Brent Collins
d98b88642b
Add new command-line option to force xfreerdp into a fips compliant mode.
...
This option will ensure that NLA is disabled(since NTLM uses weak crypto algorithms), FIPS
encryption is enabled, and ensure fips mode is enabled for openssl.
Selectively override specific uses of MD5/RC4 with new API calls specifically tailored to override FIPS.
Add comments on why overriding the use of these algorithms under FIPS is acceptable for the locations where overrides happen.
Remove check of server proprietary certificate which was already being ignore to avoid use of MD5.
Initialize winpr openssl earlier to ensure fips mode is set before starting using any crypto algorithms.
2017-11-17 12:43:06 +01:00
akallabeth
668e347814
Merge pull request #4034 from blino/wayland-keymap
...
Reuse evdev/X11 keymap for wayland
2017-11-16 12:07:07 +01:00
Armin Novak
ceda3d3f4a
Fixed color for drawing rectangles.
2017-11-15 15:56:25 +01:00
Armin Novak
536ffbc31f
Fixed missing function return check.
2017-11-15 15:56:25 +01:00
Armin Novak
dbe418062f
Fixed missing parameter checks.
2017-11-15 15:56:25 +01:00
Armin Novak
bd7e4cd35a
Fixed uninitialized variables.
2017-11-15 15:56:25 +01:00
Armin Novak
032c0164d1
Fixed missing error check.
2017-11-15 15:56:25 +01:00
Armin Novak
99f6c27488
Fixed uninitialized arguments.
2017-11-15 15:56:25 +01:00
Armin Novak
7fd5b6f4a2
Fixed warnings and test return values.
2017-11-15 15:54:38 +01:00
Armin Novak
4eb5b8e349
Replaced atoi
2017-11-15 15:52:16 +01:00
Armin Novak
e4873fe2c4
Added encoder path for libavcodec versions <1.0
2017-11-14 09:15:43 +01:00
David Fort
f4f23454c9
Merge pull request #4233 from akallabeth/kerberos_rebased
...
Kerberos rebased
2017-11-13 17:39:27 +01:00
David Fort
7bbc3cb8b7
Fix logic in nla_read_ts_credentials
2017-11-13 16:20:57 +01:00
dodo040
e0a9999fb2
fix: GSS API init, enterprise name management, variable names and format code
2017-11-13 16:20:56 +01:00
dodo040
0a3c61d305
fix undefined symbol references at linking stage
2017-11-13 16:20:56 +01:00
dodo040
b81f168f0e
initial commit for kerberos support
2017-11-13 16:20:55 +01:00
Armin Novak
5cd89a3bc5
Added compat define for missing format.
2017-11-13 11:28:43 +01:00
David Fort
b85287fb62
Merge pull request #4212 from SriRamanujam/ffmpeg_encoder_fixes
...
Fix libavcodec encoding errors and set tunables.
2017-11-13 09:30:28 +01:00
Sri Ramanujam
fef3865ff2
Fallback #ifdefs for older versions of libavcodec
2017-11-12 17:31:22 -05:00
akallabeth
fcc9419922
Merge pull request #4225 from krisztian-kovacs-balabit/use-redirection-pdu-password-on-reconnect
...
core/connection: use redirection password when reconnecting
2017-11-10 09:32:39 +01:00
David Fort
dcafd4dacd
Merge pull request #4226 from krisztian-kovacs-balabit/open-x509-keyfile-readonly
...
libfreerdp/core/certificate: open key file for reading only
2017-11-09 18:11:12 +01:00
Sri Ramanujam
66c925c9e4
Fix libavcodec encoding errors and set tunables.
2017-11-09 11:39:54 -05:00
KOVACS Krisztian
c13c9035eb
libfreerdp/core/certificate: open key file for reading only
...
There's no point in writing the key file for read-write, and it makes it
impossible to run the shadow server with the key file being read only.
2017-11-09 16:54:22 +01:00
KOVACS Krisztian
70c65e70d1
core/connection: use redirection password when reconnecting
...
According to MS-RDPBCGR the server might send a password in the Redirection PDU
that then must be sent by the client to the server as password.
Since the field either contains a password string (unicode) or a binary cookie,
we try to convert the password from unicode and use it only if conversion
succeeds.
2017-11-09 14:46:38 +01:00
KOVACS Krisztian
d396258866
codec/nsc: fix memory corruption in case of chroma subsampling
...
For odd number of rows, the memory copy operation was broken: after exiting
the loop, yplane points to the end of the last row data, and thus (yplane +
rw) points *after* the end of the last row.
2017-11-09 14:38:46 +01:00
Martin Fleisz
d5344c3396
Merge pull request #4219 from akallabeth/various_fixes
...
Various fixes
2017-11-09 09:37:18 +01:00
Martin Fleisz
ed1934cafe
Merge pull request #4211 from akallabeth/silence_duplicate_warnings
...
Silence WLog_ERR messages if last error is set.
2017-11-08 13:34:26 +01:00
Armin Novak
5dc8763b2c
Fixed compilation errors with old FFMPEG versions.
2017-11-08 12:55:11 +01:00
Armin Novak
b86c0ba548
Fixed NLA default error to FREERDP_ERROR_AUTHENTICATION_FAILED
2017-11-08 11:32:34 +01:00
David Fort
b216e91cdd
Merge pull request #4210 from akallabeth/nla_errors_extended
...
Added additional NLA error mappings.
2017-11-06 14:23:50 +01:00
Armin Novak
ce00f4dd8f
Silence WLog_ERR messages if last error is set.
2017-11-06 14:02:22 +01:00
David Fort
504b771686
Merge pull request #4053 from akallabeth/ffmpeg_encoder
...
Implemented FFMPEG based encoder.
2017-11-06 11:25:48 +01:00
akallabeth
e7b8833e9e
Merge pull request #4187 from hardening/multimon_fix
...
Multimonitor fix
2017-11-06 10:02:07 +01:00
Armin Novak
7a73a0eb1b
Added additional NLA error mappings.
2017-11-06 09:49:03 +01:00
Youness Alaoui
02e4f1f256
Do not delete the listener socket right after creating it.
...
The listener server socket file needs to be deleted before we bind it
otherwise it's an "address already in use" error. But it was getting
deleted after the bind, causing the file to disappear, and preventing
anyone from connecting to the listener socket since the socket stops
existing.
This is caused by commit 884e87fde4
2017-10-27 15:01:29 -04:00
Armin Novak
367bddd7ad
Added better error mapping for NEGO results.
2017-10-25 09:58:13 +02:00
Norbert Federa
eea2f306d3
primitives/yuv: fix endianess issue
2017-10-19 11:55:13 +02:00
Armin Novak
5d96fc9b14
Removed unused function pointer
...
The function was breaking windows 7 compatibility.
2017-10-18 09:52:41 +02:00
Norbert Federa
456ce96618
codec/h264: fix potential segfault and mf_init
2017-10-17 19:28:54 +02:00
David Fort
f90fe19fc7
multimon: correctly set the primary monitor
...
According to the spec the primary monitor is supposed to be in (0,0) and other monitors
to be given relative to this one.
2017-10-17 14:07:23 +02:00
David Fort
5d5376faa7
egfx: fix disconnection caused by invalid cache entries due to wrong announced cache size
...
Added some checks so that when setting a cache entry fails, we close connection (or
we fail later when trying to use that empty entry).
The small cache egfx capability has also been fixed.
2017-10-10 17:12:16 +02:00
David Fort
a132922376
Add checks for DR channel
2017-10-04 10:30:47 +02:00
akallabeth
e6d66d9d81
Merge pull request #4154 from hardening/misc_fixes
...
Fix raw surfaces displaying + misc other changes
2017-09-27 14:56:21 +02:00
Bernhard Miklautz
15c7cb8cb2
Enable clipboard channel per default
2017-09-27 09:45:07 +02:00
David Fort
ddca8f3a3b
Check return value of malloc
2017-09-26 13:56:08 +02:00
Armin Novak
9f26f73709
Added delay for connect abort
...
The connection abort must be called after freerdp_connect.
Ensure that this function is already running by waiting
a second.
2017-09-26 12:05:24 +02:00
Armin Novak
ef9444bd35
TestConnect: Extend timeout, only listen locally
2017-09-26 10:59:34 +02:00
Armin Novak
ac454628ae
Fixed TestConnect with dynamic channels.
2017-09-25 13:34:00 +02:00
Armin Novak
884e87fde4
Unlink file after binding to it.
...
When unlinking the file before binding, a new entry is created
in the file system after binding. This is not desireable, so
unlink it after binding to remove the temporary file after the process
closes.
2017-09-25 10:35:24 +02:00
Bernhard Miklautz
4592deee72
extend /size to allow width or height percentages ( #4146 )
...
If the size parameter is used with a percentages like /size:50% now
an additional 'w' or 'h' can be appended (like /size:50%w) to specify
where the percentage should be applied. If both or none are set the
behavior is like it was before and the percentage is applied to width
and height.
2017-09-25 09:35:49 +02:00
Jukka-Pekka Virtanen
ad1425e145
Using PasswordIsSmartcardPin option when sending TS_INFO_PACKET
2017-09-23 14:28:17 +02:00
David Fort
b587daa416
Merge pull request #4136 from tditsch/master
...
Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION
2017-09-22 09:52:27 +02:00
Armin Novak
bdae339268
Check and invalidate handles on free.
2017-09-19 12:36:13 +02:00
tditsch
a16d9a2ade
refactored Bugfix
2017-09-19 10:18:41 +02:00
tditsch
feca6d9750
Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION
2017-09-18 17:29:16 +02:00
Ondrej Holy
e9ffff56bc
cache: Use Bitmap_Free instead of free
...
Bitmap_Alloc is used to allocate memory of bitmap, Bitmap_Free should
be used to release that memory. Let's change free to Bitmap_Free.
https://github.com/FreeRDP/FreeRDP/issues/4117
2017-09-07 09:38:44 +02:00
Ondrej Holy
9cccd4888d
orders: Fix OFFSCREEN_DELETE_LIST allocation size
...
The size of OFFSCREEN_DELETE_LIST list allocation was incorrectly changed
by commit 99b1481
and consequently fixed incorrectly by commit 8a0fe086
.
Let's count the allocation size based on new size and not based on current
size in order to prevent some memory issues.
https://github.com/FreeRDP/FreeRDP/issues/4117
2017-09-07 09:38:44 +02:00
Ondrej Holy
048e7f264b
orders: Fix ORDER_TYPE_GDIPLUS_END check
...
Commit 6fd03ab
introduced security checks for orders, but
ORDER_TYPE_GDIPLUS_END check fails in case of success and vice versa.
Let's add the missing question mark.
https://github.com/FreeRDP/FreeRDP/issues/4117
2017-09-07 09:38:44 +02:00
Ondrej Holy
5d6e2078c7
cache: Check return value from offscreen_cache_get
...
Currently, SetSurface is called regardless of return value from
offscreen_cache_get. It may happen that bitmap is not found in a
cache from some reason, which may lead to segfaults. Let's check
the returned value before use.
https://github.com/FreeRDP/FreeRDP/issues/4117
2017-09-07 09:38:44 +02:00
Armin Novak
d3df6ed40f
Removed unused variable.
2017-08-31 09:57:49 +02:00
David Fort
5115ecd948
Merge pull request #4063 from akallabeth/auth_fixes
...
Fixed leaks, certificate comparison and channel context cleanup
2017-08-30 10:19:12 +02:00
Bernhard Miklautz
52fbfb7b12
fix clang warnings, directly include wtypes.h ( #4097 )
...
* build: clang use -Wno-unused-command-line-argument
With clang 5.0 builds are quite noisy otherwise.
* Directly include wtypes.h
Directly include winpr/wtypes.h where _fseeki64 or _ftelli64 is used.
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: parentheses-equality
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: tautological-compare
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning:
incompatible pointer types passing 'size_t *' (aka 'unsigned
long *') to parameter of type 'UINT32 *' (aka 'unsigned int *')
[-Wincompatible-pointer-types]
2017-08-29 09:09:38 +02:00
Armin Novak
c3d4b7d262
fseeko and ftello for 64bit file support.
2017-08-14 08:42:49 +02:00
David Fort
b29658a859
Merge pull request #4066 from akallabeth/input_event_fixes
...
Fixed capability checks for mouse and unicode input.
2017-08-02 11:25:08 +02:00
David Fort
c84065f40c
Merge pull request #4069 from yurashek/master
...
Build on Solaris
2017-08-02 09:53:38 +02:00
Armin Novak
a63b2c5a4a
Use encoder context for old libavcodec.
2017-08-02 08:53:03 +02:00
Armin Novak
d2d621106d
Fixed capability checks for mouse and unicode input.
2017-07-31 12:30:35 +02:00
Armin Novak
523a881663
Channels with a context must free it themselves.
2017-07-28 08:39:51 +02:00
Armin Novak
11fa9f6753
Free credentials on exit.
2017-07-28 08:39:49 +02:00
Armin Novak
b0411d4faa
Unexported internal NLA functions.
2017-07-28 08:38:07 +02:00
Armin Novak
c301f2d56a
Fixed certificate check return.
2017-07-28 08:35:41 +02:00
Armin Novak
ceda244165
Fixed uninitialized values and leaks.
2017-07-28 08:35:31 +02:00
Valery Kartel
9bf9ff9e8a
Fix build with LibreSSL
2017-07-26 17:12:14 +03:00
Armin Novak
dd4b5ea126
Disable JPEG codec support if not compiled in.
2017-07-24 15:23:36 +02:00
Armin Novak
3501f82e95
Implemented FFMPEG based encoder.
2017-07-20 13:27:09 +02:00
Armin Novak
b51a103b70
Fixed uninitialized values.
2017-07-20 09:35:41 +02:00
Armin Novak
e8b9e4f512
Fixed double free.
2017-07-20 09:35:41 +02:00
Armin Novak
8b9e3fa51e
Fixed use of reserved keywords for include guards.
2017-07-20 09:35:41 +02:00
Armin Novak
0490aeb018
Fixed clang malloc integer overflow warnings.
2017-07-20 09:29:48 +02:00
Armin Novak
8292b4558f
Fix TALOS issues
...
Fix the following issues identified by the CISCO TALOS project:
* TALOS-2017-0336 CVE-2017-2834
* TALOS-2017-0337 CVE-2017-2834
* TALOS-2017-0338 CVE-2017-2836
* TALOS-2017-0339 CVE-2017-2837
* TALOS-2017-0340 CVE-2017-2838
* TALOS-2017-0341 CVE-2017-2839
2017-07-20 09:28:47 +02:00
Armin Novak
88fa131248
Fixed variable assignment.
2017-07-19 11:36:28 +02:00
Armin Novak
42fdb0b8d3
Reordered backends with regard to feature completeness.
2017-07-18 07:46:51 +02:00
Armin Novak
96d53933d2
Deactivated all H264 related code paths.
2017-07-17 10:39:08 +02:00
Armin Novak
2614251e83
Removed H264 dummy, did not work (crash on use)
2017-07-17 09:28:08 +02:00
Armin Novak
5764d5a78a
Disable GFX H264 if no backend compiled in.
2017-07-17 09:25:21 +02:00
Norbert Federa
36b8f54c5e
Fixed a few compiler warnings
2017-07-10 17:52:05 +02:00
Olivier Blin
3e5f8c6bdb
Reuse evdev/X11 keymap for wayland
2017-07-05 18:48:24 +02:00
David Fort
3afacb0445
Merge pull request #4024 from bmiklautz/fix_4022
...
Fix a regression introduced with PR #4013
2017-06-29 11:55:55 +02:00
Bernhard Miklautz
e7cd3250c3
Fix a regression introduced with PR #4013
...
If numWindowRects/numVisibilityRects is zero a realloc might either
return NULL or a free able memory. In the first case the introduced
regression caused a double free.
As 0 is a possible value that can be received in both cases rail was
broken.
Fixes #4022
2017-06-29 11:28:03 +02:00
Bernhard Miklautz
b6bcd19cef
Merge pull request #4008 from hardening/h264_split
...
Split h264 subsystems in different files
2017-06-29 10:29:03 +02:00
weizhenwei
ef540ee2df
code format adjustment
2017-06-23 09:50:56 +08:00
weizhenwei
5d8d3b53c5
remove redundant NULL pointer check
2017-06-23 09:44:40 +08:00
weizhenwei
3b52a60d31
remove useless NULL pointer check before free
2017-06-23 09:21:16 +08:00
weizhenwei
61b24bf0b3
add NULL pointer check and set freed pointers to NULL afterward
2017-06-22 17:53:51 +08:00
weizhenwei
fa1c65b656
refactor to remove duplicate code and replace free+malloc with realloc
2017-06-22 10:21:20 +08:00
weizhenwei
2d56e22e9e
refactor on redundant code copy
2017-06-21 22:07:07 +08:00
weizhenwei
d77802d5e9
fix memroy leak of window_icon->iconInfo at update_read_window_icon_order()
2017-06-21 15:26:28 +08:00
weizhenwei
2f96df25fa
fix memory leak at update->window->window_state.windowRects/visibilityRects at update_read_window_state_order()
2017-06-21 15:26:28 +08:00
weizhenwei
5c19318ab5
fix memory leak at update->window->window_state.titleInfo.string at update_read_window_state_order()
2017-06-21 15:26:28 +08:00
weizhenwei
6a43fdc71a
code clean on free(update->window->monitored_desktop.windowIds);
2017-06-21 15:26:27 +08:00
weizhenwei
63c81517b7
fix memory leak on update->window->monitored_desktop.windowIds which is realloced at update_read_desktop_actively_monitored_order()
2017-06-21 15:26:27 +08:00
weizhenwei
873bb26f2e
fix a memroy leak on rdpBitmap free
2017-06-21 15:26:27 +08:00
David Fort
14969adaec
Fix openh264 backend compilation
2017-06-20 10:01:50 +02:00
David Fort
dcbb61e3b3
Fix variable declaration and win32 compilation
2017-06-19 23:52:31 +02:00
David Fort
0308123592
Split h264 subsystems in different files
2017-06-14 16:04:54 +02:00
Armin Novak
8adc2ba201
Align width and height for AVC444 decoding to 16.
2017-06-01 13:01:23 +02:00
Ilya Shipitsin
a9ab65a935
resolve an issue found by cppcheck:
...
[libfreerdp/crypto/certificate.c:315] -> [libfreerdp/crypto/certificate.c:316]: (warning) Either the condition 'if(fingerprint&&fprint)' is redundant or there is possible null pointer dereference: fingerprint.
2017-06-01 00:05:51 +05:00
Armin Novak
22f1fbe3d2
Fixed missing external declaration ( #3982 )
2017-05-31 11:44:33 +02:00
Jura Sasek
4edb5cf7e6
Build for Solaris
2017-05-24 04:27:01 -07:00
David Fort
48163a27db
Merge pull request #3906 from akallabeth/addin_cast_fix
...
Addin cast fix
2017-05-22 11:12:05 +02:00
David Fort
b92a789dfd
Merge pull request #3963 from akallabeth/qoe_ack
...
Added client RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU
2017-05-22 11:10:03 +02:00
David Fort
ee8ae987bf
Merge pull request #3967 from akallabeth/sec_encrypt_fix
...
SEC_ENCRYPT check in rdp_client_connect_auto_detect
2017-05-22 11:08:32 +02:00
davewheel
4bfb4dddbf
Add a callback to provide NTLM hashes on server-side
...
Adds a callback that allows servers to compute NTLM hashes by themselves. The typical
use of this callback is to provide a function that gives precomputed hash values.
Sponsored by: Wheel Systems (http://www.wheelsystems.com )
2017-05-18 14:24:24 +02:00
Armin Novak
f414522b7a
Added setting for QoeAck.
2017-05-18 14:07:09 +02:00
Armin Novak
8904c15cc9
Fixed missing state reset.
2017-05-17 15:58:44 +02:00
Armin Novak
6649eed659
Fixed missing argument checks.
2017-05-17 15:58:32 +02:00
Armin Novak
8c52dcbdc2
SEC_ENCRYPT check in rdp_client_connect_auto_detect
...
Fix by @wizwizaco for #3951
2017-05-15 13:10:10 +02:00
David Fort
17a4e95a5b
Drop some annoying warning
...
Probably that some unused functions should be removed, but at least it makes
it compile with no warnings.
2017-05-12 13:54:16 +02:00
Armin Novak
b1d631f1e5
Added support for Set Keyboard IME Status
2017-05-12 09:43:58 +02:00
Armin Novak
3eb882dd53
Check arguments for Bitmap_SetSurface
...
The function may be called during connection phase
where there is no valid GDI available.
2017-05-11 13:34:37 +02:00
Armin Novak
21e20ac9f2
Initialize H264 context size for GFX surfaces.
2017-05-10 12:36:08 +02:00
akallabeth
8df8cc6fb5
Merge pull request #3937 from hardening/h264_multimon
...
Fix h264 in multimon scenario
2017-05-09 11:16:12 +02:00
Martin Fleisz
16111e7e7f
codec: Fix multi-threading support for OpenH264 1.6 or later
2017-05-05 12:37:27 +02:00
Armin Novak
80f6fcf38c
Added missing callbacks.
2017-05-03 09:30:22 +02:00
Armin Novak
614d5f0a8e
Fixed use after free of region.
2017-05-03 08:48:36 +02:00
Armin Novak
f3e0c95d45
Added a GFX area update callback.
2017-05-03 08:48:03 +02:00
David Fort
b2ee8a19ab
Fixed progressive code style and added error handling
2017-05-02 18:39:33 +02:00
David Fort
d170c10ee6
Fix H264 in multi monitor case
...
The H264 context is surface specific, so in multi-monitor (with multiple surfaces)
the decoding was failing. This patch fixes that by introducing a surface specific
h264 context.
2017-05-02 18:39:33 +02:00
David Fort
40baadb471
Merge pull request #3911 from akallabeth/avc444_v2
...
Added AVC444v2 client support.
2017-05-02 16:02:21 +02:00
Armin Novak
2da8dcf8ed
Fixed MF H264 buffer allocation.
2017-04-20 12:35:51 +02:00
Armin Novak
f1a296a32e
Fixed AVC444v2 NEON chroma decoder.
2017-04-18 15:08:44 +02:00
Armin Novak
06d4e9ac73
Fixed SSE AVC444v2 chroma decoder.
2017-04-18 15:03:38 +02:00
Armin Novak
a2167d5417
Added surface width and heigth for YUV combine.
2017-04-18 14:12:40 +02:00
Armin Novak
fcd2d820af
Added SSE AVC444v2
2017-04-13 13:09:16 +02:00
Armin Novak
1a0f56baa7
Fixed AVC444 NEON, added AVC444v2.
2017-04-12 14:39:32 +02:00
Armin Novak
0c15455d8f
Upaded YUV tests.
2017-04-11 11:40:04 +02:00
Armin Novak
b0d3cfda4d
Added AVC444v2 client support.
2017-04-11 11:29:14 +02:00
Armin Novak
9713b63c26
Fixed addin tables and casts.
2017-04-10 10:38:57 +02:00
Armin Novak
4be62f7047
Fixed OpenSSL 1.1 no legacy compile issues.
2017-04-06 11:25:25 +02:00
Armin Novak
4f6beb0815
Fixed NEON YUV to RGB conversion issues.
2017-04-05 12:20:29 +02:00
Norbert Federa
1739f27b82
rdpegfx: fix RemoteFX Progressive Codec decoding
...
Since this comes via a Wire-To-Surface-2 PDU we don't have
any left/top/right/bottom destination values.
The current code has always dealt with zeros when updating the
invalid region which resulted in black rectangles.
The correct update region is determined during decompression.
2017-04-03 18:59:58 +02:00
Armin Novak
8d116e6ee9
Use exclusive coordinates in CacheToSurface.
2017-03-31 12:06:21 +02:00
Norbert Federa
0bb67a0a69
improve rdpegfx drawing for software gdi
...
process the region's rectangles individually instead of
just copying the extents
2017-03-30 15:42:13 +02:00
Armin Novak
ed0024d11b
Fixed AVC420 SSE implementation and test.
2017-03-28 17:42:35 +02:00
Armin Novak
09d43a66f4
Fixed tests and dead store warnings.
2017-03-28 16:49:56 +02:00
Armin Novak
9f9254504e
Fixed leak of client random.
2017-03-28 14:33:02 +02:00
Armin Novak
d46d0c3d4a
Fixed invalid return from xf_rail_window_icon
2017-03-28 11:47:46 +02:00
Norbert Federa
fa2086686b
some performance fixes
...
- draw only the updated region in the gdi and x11 surface bits implementation
- don't repeatedly call IsProcessorFeaturePresentEx in rfx rlgr decoder
- fix ugly and unaligned profiler print layout and remove an unnecessary value
2017-03-27 20:14:13 +02:00
David Fort
b0b3a78a20
Store client_random in server mode
...
We need the client_random in server mode when the client does RDP security and
tries to reconnect using the cookie.
2017-03-21 10:32:17 +01:00
Bernhard Miklautz
96b486b8f9
Merge pull request #3870 from akallabeth/mouse_cursor_23bpp
...
Ignore AND mask for 32bpp cursor. #3863
2017-03-20 10:09:23 +01:00
Aric Belsito
70ab61c8e6
Support LibreSSL
...
Broken by the addition of OpenSSL 1.1.0 support.
2017-03-19 13:58:24 -07:00
Armin Novak
e1a709cea7
Ignore AND mask for 32bpp cursor. #3863
2017-03-17 09:45:32 +01:00
David Fort
716eab2405
Add more RAIL option flags
2017-03-10 10:36:26 +01:00
David Fort
7b61dbdd0f
Don't forget to send the RAIL capabilities in server mode
2017-03-09 23:15:49 +01:00
Norbert Federa
f77b4a57dc
Merge pull request #3796 from akallabeth/scan_warning_fixes_v2
...
Scan warning fixes v2
2017-03-03 14:41:11 +01:00
Armin Novak
88b6ff00d9
Fixed argument checks, formatting.
2017-03-03 14:11:28 +01:00
Armin Novak
99c45405cb
Fixed GetEnvironmentVariable.
2017-03-03 12:43:00 +01:00
Martin Fleisz
14c236d682
Merge pull request #3829 from akallabeth/logon_error_info_string
...
String representation of logon_error_info
2017-03-03 09:39:24 +01:00
Armin Novak
b2c29158be
Scanbuild warning, argument checks and leak fixes.
...
* Added Stream_GetRemainingCapacity to check remaining stream size
before writes.
* Fixed shadow server memory leak.
* Fixed lots of scanbuild warnings
* Added missing argument checks in many functions
* Added missing static function declarations
2017-03-02 18:13:43 +01:00
Armin Novak
d119745d97
String representation of logon_error_info
2017-03-02 18:09:51 +01:00
Armin Novak
f0b61eb4b9
Fixed index for YUV filter in NEON path.
2017-03-02 17:56:23 +01:00
David Fort
815c97efb2
The LongCredentials capability were not parsed or used
2017-03-02 00:39:08 +01:00
David Fort
67607ce916
Take in account and set the LogonNotify flag
...
This flag was not read in the server case and was always sent in the
case of a client.
2017-03-02 00:29:48 +01:00
David Fort
5bb7a05026
Merge pull request #3823 from akallabeth/ssl_error_check_fix
...
Fixed SSL error checks in transport_ssl_cb
2017-03-01 11:21:41 +01:00
Armin Novak
e455cc1745
Fixed SSL error checks in transport_ssl_cb
...
Fix error define use. The callback is called from
ssl3_dispatch_alert or dtls1_dispatch_alert where the alert define
is left shifted by 8. Additionally ignore close notifcation. (#3814 )
2017-03-01 10:46:00 +01:00
Armin Novak
b11de26f98
Fixed GetComputerNameExA return checks.
2017-02-27 11:49:53 +01:00
akallabeth
8a22052b61
Fixed memory leaks.
2017-02-25 08:35:37 +01:00
akallabeth
705c0c1e12
Fixed GetComputerNameExA calls. #3815
2017-02-24 21:58:08 +01:00
Norbert Federa
689d2696d2
Merge pull request #3800 from mfleisz/channel_fixes
...
Cleanup channel structs in channels_close to allow instance reuse
2017-02-24 13:25:52 +01:00
akallabeth
7ce1dd0a6c
Merge pull request #3791 from akallabeth/kerberos
...
Kerberos (Rebased #3417 )
2017-02-23 13:46:34 +01:00
Armin Novak
b905e0c26d
Fixed initialisation of kerberos context.
2017-02-23 11:06:47 +01:00
Martin Fleisz
eeae688ed3
core: Cleanup channel structs in close to allow instance reuse
2017-02-22 13:45:25 +01:00
Martin Fleisz
f4efbd9a2c
Merge pull request #3797 from hardening/clientCapabilities
...
Misc patches around capabilities
2017-02-22 12:53:51 +01:00
akallabeth
65b51a6ca3
Merge pull request #3798 from mfleisz/vc10_comp_fix
...
primitives: Fix compilation with VS 2010
2017-02-22 12:47:52 +01:00
Armin Novak
6366868222
Fixed argument check of sse2_RGBToRGB_16s8u_P3AC4R
2017-02-22 10:59:18 +01:00
Martin Fleisz
966dbdf236
primitives: Fix compilation with VS 2010
2017-02-22 10:21:01 +01:00
Armin Novak
70baa6fe26
Added additional connect errors.
2017-02-22 09:50:59 +01:00
Armin Novak
363109c581
Using preloaded logger.
2017-02-22 09:42:56 +01:00
Armin Novak
1497b5654e
Using SSL defines instead of magic numbers.
2017-02-22 09:34:20 +01:00
David Fort
7b437178bb
Add a ClientCapabilities callback
...
This callback is called when the client capabilities have been received. This callback
appears to be more useful than the Capabilities one that is called just before the server
sends its capabilities.
2017-02-21 23:44:47 +01:00
David Fort
6894ed3af6
Dropped some warnings and fix code style
...
Dropped some warning that were caused by the DEBUG_CAPABILTIES define.
Also adjusted some lines that were quite ugly after the automatic truncation
to 80 characters.
2017-02-21 23:00:41 +01:00
Norbert Federa
43a4903e3d
Merge pull request #3795 from hardening/monitor_limit
...
Limit the number of client announced monitors
2017-02-21 17:35:57 +01:00
David Fort
59dafc2573
Added the spec reference for the 16 monitors limit
2017-02-21 15:03:00 +01:00
Martin Fleisz
0ed0ecb397
Merge pull request #3789 from akallabeth/scan_warning_fixes
...
Scanbuild warning and error fixes
2017-02-21 11:07:57 +01:00
David Fort
837491ba24
Limit the number of client announced monitors
...
The specs says that only 16 are allowed, so let's make that limitation a
reality.
2017-02-21 11:02:12 +01:00
Armin Novak
50cd702a15
Updated KRB5 detection, added error case handler
...
* Linking against KRB5 library now, no dynamic usage.
* Added proper CMake detection script for KRB5 detection
* Added some additional error conditions.
2017-02-21 10:54:34 +01:00
HenryJacques
56c0219907
Update transport.c
2017-02-20 16:04:33 +01:00
HenryJacques
56d6c2396e
Update errconnect.c
2017-02-20 15:59:56 +01:00
Armin Novak
e9b5d78673
Fixed scanbuild warnings.
2017-02-20 14:28:33 +01:00
Armin Novak
c0671b49b4
Fixed scanbuild warnings.
2017-02-20 14:18:18 +01:00
Armin Novak
844919defe
Fixed scanbuild issues.
2017-02-20 14:15:25 +01:00
Armin Novak
a1003ab6f0
Fixed scanbuild warnings.
2017-02-20 14:12:39 +01:00
Bernhard Miklautz
23cfd34525
Merge pull request #3746 from volth/command-line-action-script-rebased
...
Add command line option to override action script path
2017-02-20 14:08:14 +01:00
Armin Novak
c249705085
Fixed scanbuild warnings.
2017-02-20 13:45:19 +01:00
Armin Novak
4c7d01374c
Fixed warings #3784
2017-02-20 13:30:16 +01:00
akallabeth
3115c1e28d
Merge pull request #3783 from chipitsine/master
...
fix several defects found by cppcheck
2017-02-20 13:07:12 +01:00
Ilya Shipitsin
33f38da6b6
resolve trivial issues found by cppcheck
...
[libfreerdp/primitives/prim_add_opt.c:43]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_andor_opt.c:42]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_andor_opt.c:44]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_shift_opt.c:42]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_shift_opt.c:45]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_shift_opt.c:48]: (error) Uninitialized variable: shifts
[libfreerdp/primitives/prim_shift_opt.c:51]: (error) Uninitialized variable: shifts
2017-02-17 18:36:03 +05:00
Volth
c333aa359f
Add command line option to override action script path
2017-02-17 13:09:32 +00:00
Martin Fleisz
c325ec5325
Merge pull request #3780 from akallabeth/win_compile_fix
...
Win compile fix
2017-02-17 13:22:51 +01:00
Armin Novak
5755cb72a1
Fixed crash on h264 context cleanup (windows).
2017-02-17 11:40:27 +01:00
Armin Novak
f8d22c00d6
Fixed compiler warnings and uninitialized data.
2017-02-17 11:17:45 +01:00
Armin Novak
bee73adc5b
Replaced random() with winpr_RAND
2017-02-17 10:59:22 +01:00
Armin Novak
8bffcad7b8
Replaced snprintf with _snprintf.
2017-02-17 10:56:16 +01:00
Norbert Federa
a50242c636
primitives: SSSE3 RGB to AVC444YUV converter
...
------------------------------+---------+----------+-----------+-------
RGB TO AVC444YUV 1080p 32bit | COUNT | TOTAL | AVG | IPS
CPU: 3.1 GHz Core i5-2400 | | | |
------------------------------+---------+----------+-----------+-------
general_RGBToAVC444YUV_ANY | 500 | 13.0164s | 0.026033s | 38
general_RGBToAVC444YUV_BGRX | 500 | 3.9584s | 0.007917s | 126
ssse3_RGBToAVC444YUV_BGRX | 500 | 0.7694s | 0.001539s | 650
2017-02-16 17:48:23 +01:00
Norbert Federa
13a60ae138
primitives: added RGB to AVC444YUV converter
2017-02-16 17:03:40 +01:00
David Fort
c0f4b6bcad
Merge pull request #3772 from akallabeth/sse_test_fixes
...
Sse test fixes
2017-02-16 16:37:27 +01:00
David Fort
be41769506
Add some useful debug info for the egfx channel
2017-02-16 14:49:08 +01:00
Armin Novak
c50e5ba57e
Fixed warnings.
2017-02-16 14:34:43 +01:00
Armin Novak
c04918d6c2
Added value comparison for all YCbCr functions.
2017-02-16 14:00:25 +01:00
Armin Novak
4891ae62b1
Reduced test runtime.
2017-02-16 13:52:27 +01:00
Armin Novak
198bc6d9e1
Fixed compiler warnings.
2017-02-16 13:17:49 +01:00
Armin Novak
4d03a9aa6f
Improved YCoCgToRGB tests.
2017-02-16 12:16:58 +01:00
Armin Novak
799afe0cca
Fixed YUV test result print.
2017-02-16 12:16:58 +01:00
Armin Novak
dda6b14402
Fixed SSE yCbCrToRGB_16s8u_P3AC4R, improved tests.
2017-02-16 12:16:58 +01:00
Armin Novak
ee3a3a787b
Fixed SSE checks and RGBToRGB_16s8u_P3AC4R
2017-02-16 09:57:13 +01:00
Martin Fleisz
0d43201e3c
Merge pull request #3767 from akallabeth/ssse3_optimize
...
Ssse3 optimize and sanitize address
2017-02-16 09:51:28 +01:00