zihao.jiang [Sat, 27 Feb 2016 10:31:43 +0000 (18:31 +0800)]
android: Allow freerdp mobile version to be launched from URI (freerdp://)
It would be good if we have a easy way to call aFreeRDP in another Android APP (Requirement also mentioned in #2720)
We can define a scheme (freerdp://) as unified way to launch FreeRDP from another APP or browser and connect to compatible RDP server
1. Define scheme freerdp://
2. General form could be freerdp://user@hostname:port/connect?key1=value&key2=-&key3=%2b&key4=
3. [user] part would be translated to /u:
4. [hostname:port] would be translated to /v:
5. The [user@hostname:port] part would be used as app title, currently it's just the progress dialog title
6. query parameters would be translated to command line arguments. Later same arguments will overwrite the formers:
a. key1=value: => /key1:value
b. key2=-: => -key2
c. key3=%2b => +key3 (%2b is url encoded +)
d. key4= => /key4
e. Especially, drive=sdcard will be properly handled with local sdcard path. On my device it will be translated to /drive:sdcard,/storage/emulated/0
Owing to the refactor work in PR #3097, we now pass same command line argument to JNI for freerdp settings.
We just need to make the SessionActivity accept freerdp scheme and translate argument from URI form to command line form.
Norbert Federa [Mon, 29 Feb 2016 16:39:18 +0000 (17:39 +0100)]
Merge pull request #3176 from bmiklautz/shadow_subsystem
Export shadow subsystem
Bernhard Miklautz [Mon, 29 Feb 2016 16:10:53 +0000 (17:10 +0100)]
Merge pull request #3171 from akallabeth/crypto_simplification
Crypto simplification
Bernhard Miklautz [Mon, 29 Feb 2016 15:59:58 +0000 (16:59 +0100)]
Merge pull request #3168 from akallabeth/visibility_fixes
Fixed default visibility.
Bernhard Miklautz [Mon, 29 Feb 2016 15:25:04 +0000 (16:25 +0100)]
ci: build server side on windows
Bernhard Miklautz [Mon, 29 Feb 2016 15:22:24 +0000 (16:22 +0100)]
build: export freerdp-shadow
pkg-config and cmake find package
Bernhard Miklautz [Mon, 29 Feb 2016 15:02:13 +0000 (16:02 +0100)]
shadow/subsystem: fix windows build
* add dependency to freerdp-client
* add version information to freerdp-shadow-cli
Bernhard Miklautz [Mon, 29 Feb 2016 15:00:35 +0000 (16:00 +0100)]
build/win32: fix DLL version information
Swap build and patch.
Now uses the format major.minor.patch.build
Armin Novak [Mon, 29 Feb 2016 14:24:07 +0000 (15:24 +0100)]
Removed module.def from build config.
Bernhard Miklautz [Mon, 29 Feb 2016 14:21:22 +0000 (15:21 +0100)]
Merge pull request #3167 from realjiangms/shadow_export_default_subsystem
server/shadow: Export API to set built-in subsystem modules for freerdp-shadow-subsystem
Armin Novak [Mon, 29 Feb 2016 14:18:47 +0000 (15:18 +0100)]
Removed windows module.def files.
All symbols exported from libraries are declared
using *_API defines.
Armin Novak [Mon, 29 Feb 2016 14:18:19 +0000 (15:18 +0100)]
Exporting channel entry points.
Armin Novak [Mon, 29 Feb 2016 13:43:33 +0000 (14:43 +0100)]
Fixed crypto tests.
Armin Novak [Mon, 29 Feb 2016 10:12:32 +0000 (11:12 +0100)]
Fixed indentation.
Armin Novak [Mon, 29 Feb 2016 10:10:15 +0000 (11:10 +0100)]
Fixed memory leak.
Hardening [Mon, 29 Feb 2016 09:31:50 +0000 (10:31 +0100)]
Merge pull request #3165 from akallabeth/printer_fix
Printer fix
Armin Novak [Mon, 29 Feb 2016 08:00:02 +0000 (09:00 +0100)]
Refactored crypto *_New functions.
Armin Novak [Sun, 28 Feb 2016 10:12:17 +0000 (11:12 +0100)]
Updated RC4 API, fixed crashing bug.
akallabeth [Sun, 28 Feb 2016 09:33:25 +0000 (10:33 +0100)]
Merge pull request #3169 from realjiangms/android_fix_sound
android: Fix sound redirection.
zihao.jiang [Fri, 26 Feb 2016 17:07:30 +0000 (01:07 +0800)]
server/shadow: Export API to set built-in subsystem modules for freerdp-shadow-subsystem
zihao.jiang [Fri, 26 Feb 2016 18:20:49 +0000 (02:20 +0800)]
android: Fix sound redirection.
After #3097, the java side pass command line argument to JNI for freerdp settings. However there's several issues need to be fixed:
1. The argument /sound should be appended if freerdp is required to play sound at local device
2. The option value for "audio-mode" is not correct.
It should match the definition in client/common/cmdline.c
/* Audio Mode */
define AUDIO_MODE_REDIRECT 0 /* Bring to this computer */
define AUDIO_MODE_PLAY_ON_SERVER 1 /* Leave at remote computer */
define AUDIO_MODE_NONE 2 /* Do not play */
3. Uncomment support for WAVE_FORMAT_PCM in audin. I tested on my android phone and Nokia N1 tablet. It works on both device
Armin Novak [Sat, 27 Feb 2016 22:28:49 +0000 (23:28 +0100)]
Unified encryption functions.
Armin Novak [Sat, 27 Feb 2016 21:39:45 +0000 (22:39 +0100)]
Removed crypto_nonce.
Armin Novak [Sat, 27 Feb 2016 21:13:59 +0000 (22:13 +0100)]
Added API export for uwac.
Armin Novak [Sat, 27 Feb 2016 10:36:34 +0000 (11:36 +0100)]
Fixed dupliace FREERDP_API declarations.
Armin Novak [Fri, 26 Feb 2016 18:25:49 +0000 (19:25 +0100)]
Fixed default visibility.
When nothing is declared, only export symbols defined
with WINPR_API or FREERDP_API defined.
Override this setting if BUILD_TESTING to allow tests
access to internal functions usually not exposed.
akallabeth [Fri, 26 Feb 2016 17:53:45 +0000 (18:53 +0100)]
Merge pull request #3157 from DavBfr/Fix-bad-malloc-size
Fix bad malloc size in statvfs
David PHAM-VAN [Fri, 12 Feb 2016 19:32:18 +0000 (11:32 -0800)]
Fix bad malloc size in statvfs
Armin Novak [Fri, 26 Feb 2016 14:21:19 +0000 (15:21 +0100)]
Printer driver from command line now used.
Armin Novak [Fri, 26 Feb 2016 13:50:27 +0000 (14:50 +0100)]
Fixed duplicate loading of smartcard and printers.
Martin Fleisz [Fri, 26 Feb 2016 08:57:35 +0000 (09:57 +0100)]
Merge pull request #3151 from akallabeth/timezone_refactor
Timezone refactor
Hardening [Fri, 26 Feb 2016 08:52:43 +0000 (09:52 +0100)]
Merge pull request #3156 from akallabeth/ssl_wrapper_merge
Ssl wrapper merge
Armin Novak [Fri, 26 Feb 2016 08:28:54 +0000 (09:28 +0100)]
Fixed indentation.
Armin Novak [Fri, 26 Feb 2016 08:27:53 +0000 (09:27 +0100)]
Replaced magic numbers with defines.
akallabeth [Fri, 26 Feb 2016 08:23:34 +0000 (09:23 +0100)]
Merge pull request #3161 from bmiklautz/uwac_versioning
uwac: versioning and export
Bernhard Miklautz [Thu, 25 Feb 2016 22:47:32 +0000 (23:47 +0100)]
uwac: generate .pc and cmake find-module
Bernhard Miklautz [Thu, 25 Feb 2016 22:46:56 +0000 (23:46 +0100)]
uwac: enable library versioning
Bernhard Miklautz [Thu, 25 Feb 2016 22:38:53 +0000 (23:38 +0100)]
build winpr: export WINPR_API_VERSION
Bernhard Miklautz [Thu, 25 Feb 2016 20:57:56 +0000 (21:57 +0100)]
cmake/FindWayland: cleanup
* use consistent naming
* remove trailing blanks
akallabeth [Thu, 25 Feb 2016 15:57:48 +0000 (16:57 +0100)]
Merge pull request #3159 from bmiklautz/disable_mipsel
android: disable mips build
Bernhard Miklautz [Thu, 25 Feb 2016 15:57:34 +0000 (16:57 +0100)]
Merge pull request #3140 from hardening/printer_work
Misc changes
Bernhard Miklautz [Thu, 25 Feb 2016 15:31:20 +0000 (16:31 +0100)]
android: disable mips build
mips build causes problems when building openssl during integration
builds. Disable it for now
David FORT [Thu, 25 Feb 2016 14:03:14 +0000 (15:03 +0100)]
Fixed indentation
Armin Novak [Thu, 25 Feb 2016 08:02:46 +0000 (09:02 +0100)]
Fixed missing semicolon.
akallabeth [Thu, 25 Feb 2016 08:00:50 +0000 (09:00 +0100)]
Merge pull request #3042 from hardening/uwac
Move wayland client to UWAC
David FORT [Wed, 24 Feb 2016 23:41:19 +0000 (00:41 +0100)]
Added some checks
Armin Novak [Wed, 24 Feb 2016 20:45:09 +0000 (21:45 +0100)]
Unified hmac functions.
Armin Novak [Wed, 24 Feb 2016 19:39:49 +0000 (20:39 +0100)]
Unified random functions and remaining MD5.
Armin Novak [Wed, 24 Feb 2016 19:32:20 +0000 (20:32 +0100)]
Updated cryto wrapper API.
Armin Novak [Wed, 24 Feb 2016 19:16:33 +0000 (20:16 +0100)]
Fixed argument checks and return values.
Armin Novak [Wed, 24 Feb 2016 19:16:19 +0000 (20:16 +0100)]
Fixed naming of static functions.
Armin Novak [Wed, 24 Feb 2016 16:04:03 +0000 (17:04 +0100)]
Unified RC4 functions.
Armin Novak [Wed, 24 Feb 2016 15:46:25 +0000 (16:46 +0100)]
Unified md5 functions.
Armin Novak [Wed, 24 Feb 2016 15:36:15 +0000 (16:36 +0100)]
Unified sha1 functions.
Armin Novak [Wed, 24 Feb 2016 08:43:53 +0000 (09:43 +0100)]
Fixed return value for DST.
Armin Novak [Wed, 24 Feb 2016 08:42:12 +0000 (09:42 +0100)]
Readded read timezone from link.
Armin Novak [Tue, 23 Feb 2016 17:15:25 +0000 (18:15 +0100)]
Implemented timezone detection for android
Refactored version of patch from pxx02134
Armin Novak [Tue, 23 Feb 2016 17:08:18 +0000 (18:08 +0100)]
Refactored timezone functions.
akallabeth [Tue, 23 Feb 2016 19:23:52 +0000 (20:23 +0100)]
Merge pull request #3149 from bmiklautz/feb22
Misc fixes
Bernhard Miklautz [Tue, 23 Feb 2016 18:11:32 +0000 (19:11 +0100)]
Merge pull request #3150 from xhaakon/subsystem-lib
server/shadow: Build libraries for shadow subsystems
Jakub Adam [Tue, 23 Feb 2016 09:49:52 +0000 (10:49 +0100)]
server/shadow: Build libraries for shadow subsystems
Commit
60ae27b0 decoupled subsystem implementations and shadow framework
core by moving subsystem specific code right into freerdp-shadow-cli.
This, however, doesn't allow applications that would like to link
libfreerdp-shadow, in order to embed RDP shadow server, to reuse also
the subsystem module.
3rd party developers now have to either provide their own subsystem code
(copied from FreeRDP sources or written from scratch) or be limited to
usaging freerdp-shadow-cli executable, which doesn't expose all
functions of the shadow server library (e.g. enumeration of available
monitors).
This change moves the shadow subsystem out of the executable into new
freerdp-shadow-subsystem library, which freerdp-shadow-cli and
potentially other applications can link to.
Bernhard Miklautz [Tue, 23 Feb 2016 16:14:08 +0000 (17:14 +0100)]
Merge pull request #3119 from akallabeth/abort_event_reset
Resetting abortEvent only on connect and reconnect.
akallabeth [Tue, 23 Feb 2016 15:46:16 +0000 (16:46 +0100)]
Merge pull request #3015 from bmiklautz/pull/2936
tcp: change TCP_USER_TIMEOUT to 16000
Armin Novak [Tue, 23 Feb 2016 14:58:48 +0000 (15:58 +0100)]
Removed function call with invalid arguments.
Armin Novak [Wed, 10 Feb 2016 10:20:52 +0000 (11:20 +0100)]
Resetting abortEvent only on connect and reconnect.
Bernhard Miklautz [Tue, 23 Feb 2016 15:25:05 +0000 (16:25 +0100)]
timezon: add support for tz package
Some distributions don't use /etc/localtime but /etc/TZ instead. If
/etc/localtime isn't find try this.
For details see #2818
Bernhard Miklautz [Tue, 23 Feb 2016 14:34:58 +0000 (15:34 +0100)]
tcp: set the timeout to 9s
Set the TCP_USER_TIMEOUT to 9s as suggested by @giox069.
See #3015 for details
volth [Mon, 19 Oct 2015 18:29:30 +0000 (18:29 +0000)]
Increase TCP_USER_TIMEOUT to avoid disconnections.
TCP_USER_TIMEOUT value is too small, it is only 4 seconds.
That causes random disconnections reported in the bug report https://github.com/FreeRDP/FreeRDP/issues/2802
This patch should fix the bug report https://github.com/FreeRDP/FreeRDP/issues/2802
David FORT [Tue, 23 Feb 2016 13:09:14 +0000 (14:09 +0100)]
Fix compilation with out-of-tree builds
Generated files weren't in the include path
David FORT [Tue, 23 Feb 2016 08:22:15 +0000 (09:22 +0100)]
Fixed detection of wayland libs
David FORT [Mon, 22 Feb 2016 15:03:57 +0000 (16:03 +0100)]
Fix compilation and detection under debian/ubuntu
David FORT [Mon, 18 Jan 2016 14:55:33 +0000 (15:55 +0100)]
Integrate UWAC in to the FreeRDP source tree
So the wayland client can still be built without installing UWAC as a dependency.
David FORT [Tue, 12 Jan 2016 21:29:38 +0000 (22:29 +0100)]
Fixed detection of UWAC library
David FORT [Wed, 6 Jan 2016 22:56:05 +0000 (23:56 +0100)]
Move wayland client to UWAC
Bernhard Miklautz [Tue, 23 Feb 2016 10:44:58 +0000 (11:44 +0100)]
Merge pull request #3148 from mfleisz/win32_include_fix
winpr/file: Add missing include (io.h) for windows builds
akallabeth [Tue, 23 Feb 2016 08:56:17 +0000 (09:56 +0100)]
Merge pull request #2851 from ilammy/x11-cliprdr/improve-format-support
Improve clipboard format support in X11 client
Martin Fleisz [Tue, 23 Feb 2016 08:55:55 +0000 (09:55 +0100)]
winpr/file: Add missing include (io.h) for windows builds
akallabeth [Tue, 23 Feb 2016 08:37:31 +0000 (09:37 +0100)]
Merge pull request #3145 from giox069/master
Fix char signedness in glyph offset calculation, fixes #2137
ilammy [Mon, 22 Feb 2016 22:14:30 +0000 (00:14 +0200)]
client/X11: harden xf_cliprdr_parse_server_format_list()
* Make sure that numFormats has reasonable value
This will help catching errors like writing -1 as an unsigned number
of formats into the serialized stream, or trying to read the property
after someone else erroneosly messed with it, or other similar mistakes
which would result into reading and then sending garbage to the server.
We read the list xf_cliprdr_get_raw_server_formats() from an X window
property. Properties generally cannot be larger than 4 KB and each
format requires at least 5 bytes (most of them are named, though),
which gives us 512-ish limit on the number of formats we can squeeze
into the property.
However, it's hard to find an application that provides more than
20 formats (I've seen like 15 for MS Office apps), thus I believe
we can safely assume than anything that does not fit into a byte
means that we are reading garbage rather than a good format list.
* Check for the end of stream when reading format names
This also prevents reading garbage and getting segmentation faults
and Valgrind warnings when somebody somewhere sometimes forgets to
put a terminating null character where it belongs.
strnlen() and strndup() functions are provided by POSIX.1-2008
which we can reasonably expect to be available in 2016.
Bernhard Miklautz [Mon, 22 Feb 2016 16:01:43 +0000 (17:01 +0100)]
fix spelling
replace occured with occurred
Fixes #3142
akallabeth [Mon, 22 Feb 2016 12:54:08 +0000 (13:54 +0100)]
Merge pull request #3136 from bmiklautz/winpr_version
winpr: BUMP the API version to 1.2
Bernhard Miklautz [Mon, 22 Feb 2016 11:48:42 +0000 (12:48 +0100)]
Merge pull request #3147 from akallabeth/win_debug_symbol_fix
Installing debug symbols only if activated.
Armin Novak [Mon, 22 Feb 2016 09:27:50 +0000 (10:27 +0100)]
Installing debug symbols only if activated.
Giovanni Panozzo [Sun, 21 Feb 2016 16:52:52 +0000 (17:52 +0100)]
Fix char signedness in glyph offset calculation, fixes #2137
Bernhard Miklautz [Fri, 19 Feb 2016 12:27:13 +0000 (13:27 +0100)]
Merge pull request #3143 from akallabeth/deny_cert_if_cred_from_stdin
Abort certificate accept if password is read from stdin.
Armin Novak [Fri, 19 Feb 2016 09:22:38 +0000 (10:22 +0100)]
Abort certificate accept if password is read from stdin.
David FORT [Thu, 18 Feb 2016 13:19:36 +0000 (14:19 +0100)]
Add support for saveSessionInfo PDU
This patch adds some callbacks so that the client can have access to the informations
stored in this packet. Server-side implementation is also there, so that a server
can send these informations to the client.
David FORT [Thu, 11 Feb 2016 21:45:30 +0000 (22:45 +0100)]
Added missing checks
David FORT [Wed, 3 Feb 2016 09:26:59 +0000 (10:26 +0100)]
Mutualize definitions for the printer channel
Bernhard Miklautz [Tue, 16 Feb 2016 16:39:22 +0000 (17:39 +0100)]
winpr: BUMP the API version to 1.2
This is required that the exported cmake find module can be
differentiated from the "old" one. This allows it to have
multiple winpr API version installed in parallel.
find_package should now be used with an explicit version number
set like:
find_package(WinPR 1.2 REQUIRED)
Hardening [Mon, 15 Feb 2016 12:52:47 +0000 (13:52 +0100)]
Merge pull request #2710 from akallabeth/cert_temp_accept_v2
Extended certificate callbacks.
Hardening [Sun, 14 Feb 2016 13:18:26 +0000 (14:18 +0100)]
Merge pull request #3130 from pxx02134/patch-1
Update BookmarkDB.java
Hardening [Sun, 14 Feb 2016 13:17:52 +0000 (14:17 +0100)]
Merge pull request #3131 from pxx02134/patch-2
Update AndroidManifest.xml
Hardening [Fri, 12 Feb 2016 20:19:13 +0000 (21:19 +0100)]
Merge pull request #3124 from nathankidd/region16_rects-handle-null
libfreerdp-codec: Make region16_rects() handle NULL nbRects
Nathan Kidd [Fri, 12 Feb 2016 00:34:48 +0000 (19:34 -0500)]
libfreerdp-codec: Make region16_rects() handle NULL nbRects
Now matches header documentation. Also cleans up related doc grammar.
Bernhard Miklautz [Fri, 12 Feb 2016 09:43:25 +0000 (10:43 +0100)]
Merge pull request #3123 from nfedera/fix-keyboardtype-7
Several fixes for keyboard type 7 (japanese)
Hardening [Thu, 11 Feb 2016 21:21:33 +0000 (22:21 +0100)]
Merge pull request #3110 from akallabeth/mac_os_ssl_warning_fix
Mac os ssl warning fix
Norbert Federa [Thu, 11 Feb 2016 20:40:50 +0000 (21:40 +0100)]
Several fixes for keyboard type 7 (japanese)
pxx02134 [Thu, 11 Feb 2016 03:24:47 +0000 (12:24 +0900)]
Update AndroidManifest.xml
ACCESS_NETWORK_STATE statement duplicated. It cause warnings while building.
pxx02134 [Thu, 11 Feb 2016 03:21:11 +0000 (12:21 +0900)]
Update BookmarkDB.java
There seems to be two commas forgot.