Commit Graph

19135 Commits

Author SHA1 Message Date
akallabeth
7b7bea276c
Merge pull request #10327 from mfleisz/fix/auth-last-error
core: Fix handling of logon errors during nla_client_begin
2024-07-01 17:16:38 +02:00
akallabeth
9a2a1c3717
[channel,drive] fix directory traversal detection
filter out .. part of the file or directory name.
2024-07-01 17:10:23 +02:00
Martin Fleisz
f0e20bc1d2
Merge pull request #10325 from akallabeth/tcp-leak
[core,tcp] fix memory leak
2024-07-01 16:22:17 +02:00
Martin Fleisz
c1d543685b
Merge pull request #10324 from hardening/ms_port
add Hebrew (Standard) keyboard layout ID (#3)
2024-07-01 16:14:24 +02:00
akallabeth
2debe3becc
Merge pull request #10326 from akallabeth/drop-gfx-config
[server,proxy] remove unused section from config
2024-07-01 15:48:32 +02:00
Martin Fleisz
d8cd7c2f38 core: Fix handling of logon errors during nla_client_begin
Under certain circumstances `InitializeSecurityContext` returns an error
if a wrong password was provided. This PR checks the returned status
code and correctly sets the last error code. This allows a client
application to ask the user again for credentials.

A scenario where this happens is when a user tries to connect with a wrong
password and both machines are joined to the same domain.
2024-07-01 14:54:53 +02:00
akallabeth
8f4d105f50
[server,proxy] remove unused section from config
Remote GFXSettings and Clipboard section as it was no longer used. This
is a non breaking change, existing entries will be ignored (just like up
until now) but the generated config now no longer contains it.
2024-07-01 11:40:10 +02:00
akallabeth
ab39072ce9
[core,tcp] fix memory leak 2024-07-01 11:07:39 +02:00
akallabeth
b3f268ef86
[winpr,ncrypt] improve pkcs11 logging 2024-07-01 10:25:28 +02:00
akallabeth
605395028c
[server,proxy] remove sample config.ini
the sample can be dynamically generated by proxy binary, do not leave an
(outdated) config example in the repo.
2024-07-01 09:58:45 +02:00
Hideyuki Nagase
ac00064647 add Hebrew (Standard) keyboard layout ID (#3)
Co-authored-by: Hideyuki Nagase <hideyukn@ntdev.microsoft.com>
2024-07-01 09:43:46 +02:00
akallabeth
b00b38abc2
Merge pull request #10319 from akallabeth/safe_atom_name_log
[client,X11] log atom numbers passed to XGetAtomName
2024-06-28 11:06:17 +02:00
akallabeth
34a23467c5
Merge pull request #10318 from akallabeth/ipv6-fix
[core,tcp] Improve IPv4 or IPv6 connect
2024-06-28 10:49:32 +02:00
akallabeth
357a92ce55
[client,X11] log atom numbers passed to XGetAtomName 2024-06-28 09:21:17 +02:00
akallabeth
562fa8a03d
[core,tcp] Improve IPv4 or IPv6 connect
* Fix +ipv6 option, now fall back to IPv4 if no IPv6 entry found
* Add new option ForceIPvX to fail connect if no such entry is found
2024-06-28 09:07:33 +02:00
Martin Fleisz
c9aa349c52
Merge pull request #10312 from akallabeth/http_timeout
[gateway,http] implement proper timeouts
2024-06-27 10:17:40 +02:00
Martin Fleisz
9b7fe9183a
Merge pull request #10313 from akallabeth/tz-trace-log
[winpr,timezone] reduce log verbosity
2024-06-27 10:04:20 +02:00
akallabeth
6e1e35590e
[winpr,timezone] reduce log verbosity 2024-06-27 09:48:34 +02:00
akallabeth
431a96fe85
[core,gateway] properly log location 2024-06-27 08:46:48 +02:00
akallabeth
1de8f5a7aa
[core,gateway] pass rdpContext
* pass rdpContext to freerdp_tls_new
* check freerdp_shall_disconnect_context in http_response_recv
2024-06-27 08:42:08 +02:00
akallabeth
559e770982
[gateway,http] implement proper timeouts
Implement request timeouts in http_response_recv, use TcpConnectTimeout
as default
2024-06-26 22:53:09 +02:00
akallabeth
4bf3eac357
Merge pull request #10311 from akallabeth/timezone_fixes
Timezone fixes
2024-06-26 21:13:47 +02:00
akallabeth
3c4c827358
[winpr,timezone] Fix GetDynamicTimeZoneInformation
* Improve logging, use single function to dump data.
* Use GetDynamicTimeZoneInformation as man getter,
  GetTimeZoneInformation only retrieves a subset.
2024-06-26 20:59:43 +02:00
akallabeth
9b89d8fa23
[core,timezone] improve timezone logging
* Unify logging to single function
* Add helpers to format magic numbers as strings
2024-06-26 20:37:41 +02:00
Martin Fleisz
d1f0e2a0e2
Merge pull request #10306 from akallabeth/static-link-fix
[freerdp,cmake] fix linking of object library
2024-06-25 16:02:00 +02:00
akallabeth
b0f7ab7d16
[freerdp,cmake] fix linking of object library
do add to source files so that static linking does not look for a static
library once installed.
2024-06-25 15:44:57 +02:00
akallabeth
724b3a7188
Merge pull request #10305 from akallabeth/drdynvc-thread-prio
[channels,drdynvc] only set thread priority if we have one
2024-06-25 14:56:35 +02:00
akallabeth
8e81d24e14
[channels,drdynvc] only set thread priority if we have one 2024-06-25 14:38:12 +02:00
Martin Fleisz
a01639e3c4
Merge pull request #10304 from akallabeth/neon-sse-guard
Neon sse guard
2024-06-25 11:52:27 +02:00
akallabeth
7abf5eb3a7
[cmake,codec] fix WITH_OPUS
detect Opus in libfreerdp directly.
The target definition is there and if we run detection in a subdirectory
the required symbols are not visible
2024-06-25 11:30:42 +02:00
akallabeth
9b65c1109f
[build,mac] enable sse+neon
enable SSE and NEON optimized code for universal build
2024-06-25 10:16:17 +02:00
akallabeth
4cd5fe48ed
[build,mac] update dependency versions
update bundle-mac-os.sh versions checked out
2024-06-25 10:16:14 +02:00
akallabeth
8020efcd0b
[primitives,codec] guard NEON code with platform
NEON optimized code might be used in multiarch/universal builds.
So not only guard with WITH_NEON but also with architecture defines from
winpr/platform.h
2024-06-25 10:00:41 +02:00
akallabeth
896ea3c445
[primitives,codec] guard SSE code with platform
SSE optimized code might be used in multiarch/universal builds.
So not only guard with WITH_SSE2 but also with architecture defines from
winpr/platform.h
2024-06-25 09:56:52 +02:00
Martin Fleisz
628f045de6
Merge pull request #10303 from akallabeth/fix_clang_detect
[cmake] unify clang detection
2024-06-25 09:44:35 +02:00
akallabeth
370975cbd4
Merge pull request #10288 from akallabeth/http_read_timeout
[core,gateway] use TcpConnectTimeout for read as well
2024-06-25 09:17:06 +02:00
akallabeth
26e570e9fe
[cmake] unify clang detection
* Move Clang detection to own CMake file
* Check for Clang and AppleClang
* Use CMAKE_COMPILER_IS_CLANG to check for Clang in code
2024-06-25 09:09:50 +02:00
Martin Fleisz
55258cd9eb
Merge pull request #10299 from akallabeth/tzid-fix
Tzid fix
2024-06-24 15:04:48 +02:00
Armin Novak
85078bf8c8
[winpr,timezone] fix transition date detection 2024-06-24 14:45:09 +02:00
Armin Novak
0810e7d944 [core,settings] enable SupportDynamicTimeZone
FreeRDP based clients & servers support it. If a remote does not support
it it is not send/received.
2024-06-24 14:38:39 +03:00
Martin Fleisz
607606c6ee
Merge pull request #10296 from akallabeth/tzid-fix
[winpr,timezone] fix windows timezone mappings
2024-06-24 11:45:12 +02:00
akallabeth
0431b6c116
[winpr,timezone] fix windows timezone mappings
* WINDOWS_TZID_ENTRY struct members were inverted
* Entries with multiple IANA entries (separated by space) are now each
  checked for a match
2024-06-24 11:30:25 +02:00
Martin Fleisz
1fdd2ee935
Merge pull request #10290 from akallabeth/json_detect
[cmake] fix JSON detection
2024-06-24 11:30:11 +02:00
Martin Fleisz
ea668c9140
Merge pull request #10293 from akallabeth/kbd_from_locale
Kbd from locale
2024-06-24 11:18:41 +02:00
Armin Novak
c4fe6e78e5
[core,tcp] return errno ETIMEDOUT on timeout
BIO_C_WAIT_READ and BIO_C_WAIT_WRITE now set errno = ETIMEDOUT
if a timeout occurred.
2024-06-24 10:45:12 +02:00
Armin Novak
8df1a9a52a
[core,tcp] replace macros with inline functions 2024-06-24 10:43:24 +02:00
akallabeth
66f31e5bb9
[core,gateway] use TcpConnectTimeout for read as well
http_response_recv might never receive an answer, so do wait for input
and fail if the timeout is exceeded.
2024-06-24 10:38:52 +02:00
akallabeth
02c410c42f
Merge pull request #10297 from lemonmojo/iosaudio-fix
[rdpsnd,ios] Fix rdpsnd_ios_open method signature
2024-06-24 09:04:14 +02:00
Felix Deimel
a424bab451 [rdpsnd,ios] Fix rdpsnd_ios_open method signature
Fixes compilation with WITH_IOSAUDIO
2024-06-21 12:34:00 +02:00
akallabeth
388ad6b537
[client,common] add support for /kbd:lang:de style
allows mapping of languages to keyboard layouts
2024-06-20 10:27:53 +02:00