Commit Graph

18785 Commits

Author SHA1 Message Date
akallabeth
8281186a6d
[client,sdl] create a copy for SDL3
* Copy SDL2 client to SDL3 as the new version is not API compatible
* Move existing SDL2 client to SDL2 directory
* Move fonts from SDL client to resources folder in top level directory
2024-05-16 18:27:11 +02:00
akallabeth
45d57a8e65
Merge pull request #10194 from akallabeth/sdl_pref_class
Sdl pref class
2024-05-16 18:12:33 +02:00
akallabeth
e5bb2f98f8
[ci,nightly] add json-c alternative to debian 2024-05-16 17:01:07 +02:00
akallabeth
ac69cf346e
[cmake] add missing include
include(CMakeDependentOption) before use.
2024-05-16 16:51:55 +02:00
Ondrej Holy
3f97fb59ad
[client,sdl] add test case for SDL prefs
Let's add test case for SDL prefs functionality. This is to test the
JSON wrapper to ensure it doesn't break something.
2024-05-16 16:51:44 +02:00
akallabeth
632f500f3e
[client,sdl] refactor SdlPref
* Wrap in class
* Allow overriding default configuration file for tests
2024-05-16 15:37:22 +02:00
akallabeth
c073c76871
Merge pull request #10183 from akallabeth/jsonc
Jsonc
2024-05-16 15:17:11 +02:00
akallabeth
4b3ecfac47
[winpr,utils] fix cJSON detection
* pkg-config sets CJSON_FOUND, check for that instead of the paths, which
  might be unset or set to <var>-NOTFOUND
* move detection to own file. find_package targets are meant to be used
  in same directory or below, but we define the WinPR target one above,
  so include it in parent
2024-05-16 13:27:22 +02:00
Ondrej Holy
945c496812
[client,sdl] use WITH_WINPR_JSON instead of WINPR_JSON_FOUND
The WINPR_JSON_FOUND macro is never defined currently. Consequently,
the SDL prefs always use the fallback implementation. Let's use the
WITH_WINPR_JSON instead to really parse the sdl-freerdp.json file.
2024-05-16 11:56:17 +02:00
Ondrej Holy
e197d27c8d
[client,sdl] move prefs to static lib
This is in preparation for the subsequent commit adding test case for
the prefs functionality to avoid building the code twice.
2024-05-16 11:56:13 +02:00
Ondrej Holy
15c78a27f2
[cmake] really use pkg_check_modules results for json-c
Although, the `pkg_check_modules` function is used when finding the
json-c library, the results are never used. Let's add the `HINTS` params
for the `find_path` and `find_library` functions.
2024-05-16 11:56:08 +02:00
Ondrej Holy
9aca06e0b7
[core,gateway] always return in case of error
Currently, the `arm_handle_bad_request` function returns `FALSE` when the
`cJSON_ParseWithLength` function fails to parse the message, but only when
the `cJSON_GetErrorPtr` returns a valid pointer. It would be better to
return regardless of the `cJSON_GetErrorPtr` return value.
2024-05-16 11:56:03 +02:00
Ondrej Holy
702acc93c6
[client,sdl] remove duplicated include statement 2024-05-16 11:55:58 +02:00
Armin Novak
4bdc9ad950
[winpr,utils] fix cJSON fallback detection 2024-05-15 13:46:38 +02:00
akallabeth
5bc74f43c8
Merge pull request #10186 from akallabeth/workflow-dep-from-nightly
revert Workflow dep from nightly
2024-05-14 22:21:49 +02:00
akallabeth
077335b412
Revert "[ci] get dependencies from nightly package"
This reverts commit 0fcb933527.
2024-05-14 22:08:51 +02:00
akallabeth
be436e644e
Revert "[ci] enable deb-src for workflows"
This reverts commit b315ec5777.
2024-05-14 22:08:01 +02:00
akallabeth
c81b75f4b5
Merge pull request #10185 from akallabeth/workflow-dep-from-nightly
[ci] enable deb-src for workflows
2024-05-14 21:59:54 +02:00
akallabeth
b315ec5777
[ci] enable deb-src for workflows 2024-05-14 21:45:45 +02:00
akallabeth
0184c01114
Merge pull request #10184 from akallabeth/workflow-dep-from-nightly
[ci] get dependencies from nightly package
2024-05-14 21:25:27 +02:00
akallabeth
de49d32004
[cmake] fallback detection for cJSON 2024-05-14 21:16:43 +02:00
akallabeth
0fcb933527
[ci] get dependencies from nightly package 2024-05-14 21:11:35 +02:00
akallabeth
8bdf92ca52
[utils] link m library if required 2024-05-14 20:45:38 +02:00
akallabeth
aaded541d9
[core,client] replace cJSON with WinPR wrapper
use the new WinPR JSON wrapper API
2024-05-14 20:45:31 +02:00
akallabeth
1b735a5c17
[winpr,utils] add JSON parser wrapper
as we now support cJSON and json-c we need to wrap the functions we use.
also allows drop in replacements for older cJSON versions lacking
certain functions.
2024-05-14 20:45:25 +02:00
Ondrej Holy
29bb435ecc
[cmake] add JSON library find modules
* Add module for cJSON
* Add module for json-c
2024-05-14 20:45:07 +02:00
Ondrej Holy
5f07ffda94
[cmake] fix typo in comment 2024-05-14 18:11:33 +02:00
akallabeth
e99f994933
Merge pull request #10182 from akallabeth/fix_network_type_with_gfx
Fix network type with gfx
2024-05-14 11:53:57 +02:00
akallabeth
1efefceb5c
[core,settings] refactor /network
* add CONNECTION_TYPE_INVALID
* default to CONNECTION_TYPE_AUTODETECT
* allow /network:invalid and /network:0 to disable
2024-05-14 11:18:29 +02:00
akallabeth
a1d8754f1f
[core,autodetect] abort on unexpected message. 2024-05-14 11:07:50 +02:00
akallabeth
41d63e1895
Merge pull request #10180 from akallabeth/fixes
Warning fixes, documentation update
2024-05-13 09:15:46 +02:00
akallabeth
b6db375b9b [winpr,utils] fix libjpeg const cast
libjpeg API is not const correct, so we need to cast away const
fixes #10175
2024-05-12 20:30:25 +02:00
akallabeth
15fc460c6f [winpr,timezone] remove struct from struct DIR
fix #10176
2024-05-12 20:19:13 +02:00
akallabeth
a86ca848d5 [winpr,timezone] fix NULL strdup 2024-05-12 20:17:06 +02:00
akallabeth
e037f643ea [doc] update SECURITY.md for 3.x branch 2024-05-12 20:15:54 +02:00
Armin Novak
e272eb3966 [warnings] fix Wshadow warnings 2024-05-08 15:30:01 +02:00
akallabeth
1b8221e5bf [warnings] fix various minor warnings 2024-05-08 14:53:39 +02:00
akallabeth
a403b3bd1c [server,proxy] add missing WINPR_NORETURN 2024-05-08 14:53:39 +02:00
Armin Novak
474e3fa983 [winpr,timezone] fix missing const 2024-05-08 14:53:39 +02:00
akallabeth
95a7f5019a [winpr,timezone] fix clang-tidy warnings 2024-05-08 10:08:08 +02:00
akallabeth
f9443a080e [utils,doc] update timezone sync procedure
* add new C# utility to generate timezone mappings
* update procedure to follow for updating timezones
* remove obsolete TimeZones.csx script
* update generated files with new tool
2024-05-08 10:08:08 +02:00
akallabeth
277907d810 [winpr,timezone] add C# timezone extractor 2024-05-08 10:08:08 +02:00
akallabeth
cd18532f45 [winpr,timezone] add IANA to short mapping
* Add a generator for IANA and short zone name mappings.
* Add a function to get all IANA mappings for a short zone name.
2024-05-08 10:08:08 +02:00
akallabeth
52a884ed2e [winpr,timezone] refactor timezone mapping
* add option to use ICU as a fallback mapping (eliminate need for
  WindowsZones mapping list)
* extract timezone related settings from localtime_r and eliminate the
  need to parse the complex TimeZones table
* Add new TimeZoneNameMap to map IANA to windows names (Id, Standard,
  Daylight and Display names)
* Implement GetDynamicTimeZoneInformation
2024-05-08 10:08:08 +02:00
Armin Novak
47ac961cb9 [core,settings] initialize DynamicDSTTimeZoneKeyName 2024-05-08 10:08:08 +02:00
Armin Novak
d8cabe84ce [client,X11] check PubSub for NULL 2024-05-08 10:08:08 +02:00
akallabeth
3049181d9b [winpr,sspi] skip IP addresses for kerberos auth
kerberos requires hostnames to authenticate, if we connect with a IP
address do not try kerberos based authentication
2024-05-07 10:38:30 +02:00
Richard Markiewicz
61d3f1f201 [client,mac] Enable secure restorable state 2024-05-04 11:50:54 +02:00
مهدي شينون (Mehdi Chinoune)
d219ed7179 Don't setup MSVC Runtime on MinGW 2024-05-04 11:33:30 +02:00
toreonify
9118551334 Renamed Atom identifiers, reserved names were used 2024-05-04 11:32:39 +02:00