Commit Graph

20098 Commits

Author SHA1 Message Date
akallabeth
c513886914
[ci,assert] silence coverity on WINPR_ASSERT
silence covertiy NO_EFFECT with _Pragma when using WINPR_ASSERT.
We´ve got a lot of situations where a check is mostly useless when
functions are called correctly, but the check triggers on common errors.
So silence this warning on our perfectly fine usage situations
2024-10-28 08:36:23 +01:00
akallabeth
259b4f40c8
Merge pull request #10790 from akallabeth/ci
[compiler,macros] fix pragma by compiler support
2024-10-27 22:36:35 +01:00
akallabeth
a60ac2321d
[compiler,macros] fix pragma by compiler support 2024-10-27 21:58:58 +01:00
akallabeth
42178b6191
Merge pull request #10789 from akallabeth/ci
Ci
2024-10-27 20:35:11 +01:00
akallabeth
fd1c850c62
[ci,preloads] fix CMAKE_BUILD_TYPE 2024-10-27 20:07:41 +01:00
akallabeth
7adb9517fc
[ci,alt-arch] use v2.8.1 of alt-architecture build 2024-10-27 20:07:33 +01:00
akallabeth
a0cb7ce166
Merge pull request #10788 from akarl10/websocket-negotiate-non-plain-ntlm-fix
[rdg,websockets] Fix Http Negotiate for Websocket
2024-10-27 19:17:09 +01:00
akarl10
1ea08b776f Fix Http Negotiate for Websocket
When using negotiate in non direct NTLM mode the success response
contains an aditional token for the authentication layer.
Add HTTP_STATUS_SWITCH_PROTOCOLS to the list of valid HTTP status codes
where to extract the last auth token
2024-10-26 23:43:37 +02:00
akallabeth
940d067f52
[server,proxy] stricter argument parsing
* Check number of arguments is valid (don't allow additional ones)
* Replace exit() with normal return for helper functions
2024-10-26 19:53:36 +02:00
akallabeth
d2ec568d39
[winpr,sspi] improve NTLM unit test
* Test empty passwords as well
* Improve return value checks
2024-10-26 15:18:29 +02:00
akallabeth
91a5f06ba3
[winpr,sspi] allow empty NTLM passwords 2024-10-26 15:18:26 +02:00
akallabeth
e560733f8e
[winpr,sspi] fix NTLM debug message
dump only hex of received data, the symbols might not be printable.
2024-10-26 14:42:12 +02:00
akallabeth
d19b7fa5d0
Merge pull request #10768 from akallabeth/stream-write-assert
[winpr,stream] assert Stream_Write_(U)INT[8|16|32] ranges
2024-10-26 14:40:43 +02:00
akallabeth
11570395bc [winpr,stream] updated function documentation 2024-10-25 14:36:28 +02:00
akallabeth
0a6679b793
Merge pull request #10783 from akallabeth/rpm-fix
[ci,nightly] fix missing files in RPM spec
2024-10-25 14:11:37 +02:00
akallabeth
75c2e9f6a5
[ci,nightly] add a script to build an RPM nightly 2024-10-25 14:09:40 +02:00
akallabeth
e7414ef635
[ci,nightly] fix missing files in RPM spec 2024-10-25 13:47:13 +02:00
Martin Fleisz
9a21b81422
Merge pull request #10465 from akallabeth/desktop-files
[client,common] add WITH_INSTALL_CLIENT_DESKTOP_FILES
2024-10-25 12:33:27 +02:00
akallabeth
c377b0ce86
[client,common] add WITH_INSTALL_CLIENT_DESKTOP_FILES
This new CMake option allows installing .desktop files and application
icons if turned on.
2024-10-25 12:11:54 +02:00
akallabeth
e4e6e254a2
Merge pull request #10781 from akallabeth/nightly-update
Nightly update
2024-10-25 12:08:08 +02:00
akallabeth
0a02afc225
[winpr,assert] silence -Wtautological-value-range-compare
assertions sometimes check for values that are not possible (checks in
defines that are used on different types, ...) so silence these
warnings.
2024-10-25 12:04:06 +02:00
akallabeth
88d9b1f110
[crypto,per] abort on invalid parameters 2024-10-25 11:48:16 +02:00
akallabeth
5f86284663
[core,orders] fix update_write_coord
* Add value range checks
* Add proper log message
* Add failure return
2024-10-25 11:48:14 +02:00
akallabeth
738cbd54b2
[core] fix issues with value ranges written 2024-10-25 11:48:12 +02:00
akallabeth
04a5bbed4a
[winpr,stream] unify Stream_Fill and Stream_Zero 2024-10-25 11:48:09 +02:00
akallabeth
941c36f4f6
[winpr,stream] assert Stream_Write_(U)INT[8|16|32] ranges
* Every function takes a (U)INT64 as argument to avoid shortening the
  original value
* The limits are asserted so invalid values can be found during runtime
2024-10-25 11:48:07 +02:00
Armin Novak
8c9f83a12f
[ci,nightly] update rpm spec 2024-10-25 11:40:48 +02:00
akallabeth
edde0f542e
[ci,nightly] update debian nightly
* Use keyboard layouts from installed JSON
* Use timezones from installed JSON
* Run unit tests during package build
* Enable internal RC4/MD4/MD5
2024-10-25 11:40:46 +02:00
akallabeth
a27d9508e2
[cmake] unify CFLAGS to string
* move to common CMake function
* escape CFLAGS
2024-10-25 11:40:43 +02:00
akallabeth
a3aa01214c
[resource root] unify locations
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +02:00
akallabeth
5538681fc3
Merge pull request #10780 from akallabeth/window-fake-monitor
Window fake monitor
2024-10-24 14:24:18 +02:00
akallabeth
392a085728
[core,settings] enforce fullscreen monitor requirements
* Monitor must start at 0/0
* Monitor must be primary
2024-10-24 11:32:10 +02:00
akallabeth
7ab30a1b18
[client,common] const correct pointer array arguments 2024-10-24 11:32:08 +02:00
akallabeth
14c4cd8dc3
[client,sdl] ignore window properties if not fullscreen/multimon 2024-10-24 11:32:05 +02:00
akallabeth
401f81683c
[core,settings] fake monitor in window mode
RDP requires sending monitor information to the server. If we are in
windowed mode fake that information with the windows size
2024-10-24 11:32:03 +02:00
akallabeth
1675d926d2
Merge pull request #10776 from akallabeth/packaging-tests
[cmake] split tests
2024-10-24 11:26:17 +02:00
akallabeth
de055a6765
Merge pull request #10777 from akallabeth/cmake-build-type
[cmake] enforce a supported build type
2024-10-24 09:47:47 +02:00
akallabeth
a5208f948d
Merge pull request #10774 from akallabeth/cov-fix
[sysconf] _SC_GETPW_R_SIZE_MAX return checks
2024-10-24 09:47:21 +02:00
Armin Novak
527db6783b
[cmake] split tests
* Keep BUILD_TESTING, but only run tests compatible with API (for
  packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
  tests that modify API to be run on our CI
2024-10-24 09:45:44 +02:00
akallabeth
d511316e86
[core,rdp] add build and supported cipher/digest checks
checking for:
 * WITH_VERBOSE_WINPR_ASSERT (runtime slowdown)
 * digests MD4, MD5, SHA1 and SHA256
 * HMAC md5 and sha1
 * Cipher RC4/ARC4_128, DES_EDE3_CBC, AES128_CBC, AES192_CBC,
   AES_256_CBC
2024-10-24 09:12:22 +02:00
akallabeth
180a0e6c9e
[winpr,crypto] add functions stringify ciphers
* add funtion to get the name of a cipher
* add function to get the cipher from name
* make ciphers an enum
2024-10-24 09:08:11 +02:00
akallabeth
aa9b03df25
[cmake] generate full buildflags.h CFLAGS
Combine current configuration flags with CMAKE_C_FLAGS
2024-10-24 09:08:08 +02:00
Armin Novak
98f4a2b022
[client,various] print client specific only on help
do not print if version or other command was run
2024-10-24 09:08:06 +02:00
Armin Novak
e48fb1eabd
[core,warnings] warn about runtime check options 2024-10-24 09:08:03 +02:00
Armin Novak
0d7edfd884
[cmake] enforce a supported build type
We check for build types internally to enable/disable debug options.
Ensure the CMAKE_BUILD_TYPE is either not set or set to a supported
value.
2024-10-24 09:08:00 +02:00
Armin Novak
f488d15b7a
[winpr,utils] update TestStream 2024-10-23 16:01:30 +02:00
Armin Novak
d3f8cd3073
[client,common] fix data race 2024-10-23 11:39:29 +02:00
Armin Novak
0cb84a0d8f
[crypto,cert] fix error handling for bio_read_pem 2024-10-23 11:34:06 +02:00
Armin Novak
0545a8a5ef
[uwac] fix sign warnings 2024-10-23 11:02:52 +02:00
Armin Novak
9b32cc59b8
[core,gateway] restore non-local value 2024-10-23 10:52:21 +02:00