Commit Graph

4193 Commits

Author SHA1 Message Date
akallabeth
f5a51d72b3 [winpr,utils] improve WLog logging
* Increase maximum message size to 16384 bytes (ARM transport logs huge
  texts)
* Unify text message logging to a single function
2025-11-11 11:41:15 +01:00
akallabeth
6414d81a58 codespell 2025-11-11 08:48:22 +01:00
akallabeth
ce87165719 [c,attributes] mark functions with attirbute malloc 2025-11-07 11:20:39 +01:00
akallabeth
d41ea2de76 Merge pull request #11977 from ploosin/feature/add_korean_in_xkb_keyname_table
[input, virtualkey] Add Korean keys in XKB_KEYNAME_TABLE
2025-11-04 12:58:14 +01:00
Kim Youngseok
6d3487d4f9 [input, virtualkey] add korean in XKB_KEYNAME_TABLE 2025-11-04 12:57:10 +01:00
Martin Fleisz
fb2113985d [winpr,synch] Fix starvation in pollset_poll caused by emscripten_sleep
Recent changes in `pollset_poll` added yielding the process using
`emscripten_sleep` so event handlers can have time to process data and
set events.

However calling `emscripten_sleep` on every iteration when checking the
pollset caused process starvation which slowed down the whole session
massively.

This commit fixes this issue by checking for signaled events 10 times
before actually causing a yield. This avoids possible deadlocks while
not slowing down the whole session pipeline.
2025-10-28 13:31:37 +01:00
akallabeth
3db117283a [winpr,print] mark function WINPR_ATTR_MALLOC 2025-10-28 11:14:01 +01:00
akallabeth
0dd6d838bb [winpr,json] add WINPR_JSON_AddIntegerToObject
This function adds a integer value (in contrast to real values with
WINPR_JSON_AddNumberToObject) to a JSON object.
2025-10-28 11:13:44 +01:00
Martin Fleisz
740d3a058d [winpr,synch] Yield after a poll timeout in emscripten
This change allows external event handlers to be triggered (i.e. socket
receive) while FreeRDP is in an infinite waiting state.
2025-10-13 15:06:22 +02:00
akallabeth
0dedeeb75b Update timezone definitions 2025-10-13 10:22:53 +00:00
akallabeth
296686e03f [winpr,timezone] udpate dotnet version for tzextract 2025-10-13 12:20:42 +02:00
Armin Novak
4300fc586d [winpr,json] check for jansson required minimum version 2025-10-01 14:34:26 +02:00
Armin Novak
204079d73c [winpr,json] fix WINPR_JSON_AddItemToArray
Use reference stealing version to add the item to the array
2025-09-30 17:19:56 +02:00
Armin Novak
b2783956bf [winpr,json] fix jansson return value check
json_object_set_new returns 0 on success, -1 on failure
2025-09-30 17:05:05 +02:00
Armin Novak
5c69cf1406 [winpr,json] fix jansson reference count 2025-09-30 17:04:59 +02:00
Armin Novak
fde7eb57ee [winpr,json] fix jansson WINPR_JSON_GetNumberValue 2025-09-30 13:18:55 +02:00
Armin Novak
dc6ae54d7a [winpr,json] fix jansson WINPR_JSON_IsObject 2025-09-30 10:15:39 +02:00
Armin Novak
efd1109ca0 [winpr,json] fix a memory leak with jansson
* Add a reference count debug option to jansson implementation
* Fix a memory leak with add_to_object
2025-09-30 09:51:21 +02:00
akallabeth
8fc7acbfd0 [winpr,pool] limit minimum threadpool size 2025-09-29 08:40:45 +02:00
akallabeth
74648eb3a9 [c,standard] use C99 inline 2025-09-26 11:29:26 +02:00
Armin Novak
8f8cd89f69 [winpr,json] add jansson support
* Split JSON implementations in separate files
* Simplify JSON detection
* Add jansson implementation
2025-09-25 15:09:28 +02:00
Armin Novak
6cfdf9e43e [json] use WINPR_JSON_GetObjectItemCaseSensitive
Prefer usage of case sensitive functions that are faster.
2025-09-23 12:38:23 +02:00
Armin Novak
75787a62de [winpr,json] fix json-c case insensitive object get 2025-09-23 12:33:31 +02:00
akallabeth
74a3a7695c [cmake,pkg-config] properly set requires fields 2025-09-21 19:07:16 +02:00
akallabeth
abbee49ef5 [winpr,path] fix endianness issues 2025-09-19 18:35:03 +02:00
akallabeth
38d6aa920f [winpr,thread] add unit test case 2025-09-12 19:44:35 +02:00
Simon Nivault
09571d1a6b Fix quote parsing 2025-09-12 15:11:39 +02:00
akallabeth
0e6c921b20 [winpr,threadpool] default minimum thread count
Set a default minimum of 4 threads in a pool. Avoids issues with system
running with a single processor (might lead to deadlocks if the code
assumes > 1 thread handling stuff)
2025-09-12 08:39:25 +02:00
Armin Novak
d355082c32 [cmake] static build: populate private
in pkg-config files only add Requires.private and Libs.private if we
build a static library.
2025-09-11 10:59:26 +02:00
Armin Novak
113b73512c [CMake,winpr] add pkg-config dependencies
Depending on CMake variables add cmake required.private options
2025-09-11 07:17:33 +02:00
Armin Novak
f0eb42a2fc [winpr,sspi] log mechanisms not valid
Log SSPI mechanisms that are available but not usable due to
configuration.
2025-09-04 15:08:03 +02:00
Armin Novak
ff23fc53dd [winpr,path] fix missing length check 2025-09-04 10:36:08 +02:00
Armin Novak
c2fc455d8f [winpr,pool] limit threadpool to 16 threads by default
Initialize the threadpool to minimum of number of processors and 16 by
default.
2025-09-03 15:02:49 +02:00
akallabeth
14598e319f Merge pull request #11837 from TheBestTvarynka/fix/winpr-piv-cert-labels
fix(winpr): ncrypt_pkcs11: set correct PIV certificate labels
2025-09-02 21:51:18 +02:00
Pavlo Myroniuk
101f7ad1c8 fix(winpr): pin cert labels; 2025-09-02 16:12:04 +03:00
akallabeth
dd7d3841e9 [winpr,path] fix big endian issues with path 2025-09-02 09:19:28 +02:00
akallabeth
a7c4a1a022 [winpr,platform] add macro to disable deprecations 2025-09-02 09:04:39 +02:00
akallabeth
e2b6c0ca2a [winpr,file] fix TestFileFindFirstFile 2025-09-01 17:03:51 +02:00
akallabeth
6f9a15d7c8 [winpr,file] fix TestFileFindFirstFileW 2025-09-01 09:18:46 +02:00
akallabeth
2552408b8a [api] fix missing C++ guards 2025-08-29 12:25:32 +02:00
akallabeth
3a34545a75 [sspi,negotiate] improve /auth-pkg-list parsing
* add 'none' keyword to allow disabling all methods, selectively
  enabling by adding
* improve option description
* fix reading of ini file settings
2025-08-29 12:18:20 +02:00
akallabeth
7e9149e6aa [winpr,sspi] fix Heimdal compatibility 2025-08-26 14:00:11 +02:00
Dan Horák
907ca47e40 [winpr,synch] increase timeout for TestSynchCritical
Increase the deadlock detection timeout in TestSynchCritical to accommodate
longer runtime on systems with large number of CPUs/threads. The usual test
run time when the threads are finishing correctly won't change.

Fixes: https://github.com/FreeRDP/FreeRDP/issues/11800
2025-08-22 19:22:48 +02:00
Armin Novak
058cfa972f [macros] #ifndef MAX
on some platforms the macro is part of the standard library, only define
if not already there.
2025-08-20 11:38:46 +02:00
Armin Novak
4fadd12047 fix clang-tidy warnings 2025-08-20 11:28:18 +02:00
Armin Novak
376a2c6e32 [winpr,credentials] prefer utf-8 over utf-16-LE
When implementing the wide character functions convert the string to
utf-8 before manipulation to avoid endianess issues.
2025-08-20 09:42:37 +02:00
Armin Novak
e87ef20f55 [winpr,crt] always convert to/from UTF-16LE 2025-08-20 09:15:56 +02:00
Armin Novak
124e2adafe [warnings] fix type mismatches 2025-08-18 14:32:29 +02:00
Armin Novak
81bc5d825c [winpr,library] implement GetModuleHandle[AW] 2025-08-18 08:33:13 +02:00
akallabeth
3f7f3a3bd8 [winpr,library] Fix LoadLibraryX and LoadLibraryW
Using a NULL library name should return a handle to the
library/executable itself.
2025-08-14 08:14:43 +02:00