Vic Lee
ce604a5a81
[core,primitive] fix rgb primitive copy without conversion.
2024-11-04 17:53:59 +08:00
akallabeth
1b177eeda9
[core,security] fix assertion
...
The assert for the buffer size required too many bytes in the output
buffer.
2024-10-31 13:11:57 +01:00
akallabeth
6b6ae5fa9d
[utils,helpers] revert removed define
...
the define was conditionally unused. guard it now so it does not show up
as unused
2024-10-31 08:51:55 +01:00
akallabeth
dc76879e0b
[warnings] fix some compiler warnings
...
* fix compiler warnings found in a lot of places
* add missing enum type for clipboard channel
* mark deallocator for winpr image function
2024-10-30 16:12:20 +01:00
akallabeth
8e33854c62
[tests] improve TestCommonAssistance
...
Compare encrypted passwords against reference values to ensure the
encryption routines work as expected
2024-10-30 13:22:59 +01:00
akallabeth
2a41730f70
[common,assistance] replace winpr_Cipher_New
...
* use winpr_Cipher_NewEx where possible
* use winpr_RC4_New where RC4 is used
2024-10-30 13:22:55 +01:00
akallabeth
3ae0a10142
[core] replace usage of winpr_Cipher_New
...
prefer winpr_CipherNewEx to be on the safe side.
2024-10-30 13:22:52 +01:00
akallabeth
2b0b52be9e
[core,rdp] adjust warning for RC4
...
RC4 is not supported by winpr_Cipher_New but only by explicitly calling
winpr_RC4_New. Adjust the availability test to use the correct
functions.
2024-10-30 13:22:50 +01:00
akallabeth
24ab4b297f
[utils,string] fix freerdp_extract_key_value
...
reset errno before strtoul to avoid aborting due to a previous errno
value from a different function call
2024-10-29 16:50:00 +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
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
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
a3aa01214c
[resource root] unify locations
...
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +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
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
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
Armin Novak
e48fb1eabd
[core,warnings] warn about runtime check options
2024-10-24 09:08:03 +02:00
Armin Novak
0cb84a0d8f
[crypto,cert] fix error handling for bio_read_pem
2024-10-23 11:34:06 +02:00
Armin Novak
9b32cc59b8
[core,gateway] restore non-local value
2024-10-23 10:52:21 +02:00
Armin Novak
74b596758c
[crypto,tls] add check for overflow
2024-10-23 10:50:07 +02:00
akallabeth
d8dc2956e5
[codec,color] fix overlapping check
...
only consider images that do not contain the same lines not overlapping.
Ignore any x offsets as this may lead to alignment problems resulting in
invalid overlapping areas.
2024-10-22 11:03:14 +02:00
akallabeth
28037f100c
[warnings] fix sign comparison issues
2024-10-22 10:11:38 +02:00
akallabeth
9e18bd94f9
[crypto,x509] replace sprintf
2024-10-22 09:50:39 +02:00
akallabeth
4f4d400f7e
[core,gateway] fix out of range check
2024-10-22 09:50:36 +02:00
akallabeth
6929ade1c4
[crypto,tls] fix cast
2024-10-22 09:50:24 +02:00
akallabeth
8b3f807a0a
[warnings] fix format warnings
2024-10-17 20:47:29 +02:00
Martin Fleisz
fb1ce1eb53
Merge pull request #10753 from akallabeth/size_t_def
...
replace SIZE_T with size_t
2024-10-17 14:10:13 +02:00
akallabeth
f346b94835
replace SIZE_T with size_t
2024-10-17 12:40:22 +02:00
akallabeth
5f3be98c61
[crypto,cert] fix builds with LibRESSL
2024-10-17 12:02:39 +02:00
akallabeth
5353bff104
[assert] use WINPR_STATIC_ASSERT
2024-10-16 19:07:07 +02:00
akallabeth
e3430eeff5
[codec,dsp] fix unreachable code
2024-10-16 13:32:27 +02:00
akallabeth
0f8a6392d1
[crypto,tls] remove dead code
...
unreachable condition in is_accepted_fingerprint removed
2024-10-16 13:32:22 +02:00
akallabeth
acf80baeb7
[locale,xkbfile] fix comparison function
2024-10-16 13:32:20 +02:00
akallabeth
b5d4339d86
[core,fastpath] fix error unlock
2024-10-15 22:44:16 +02:00
akallabeth
026b5218ff
[warnings] fix integer narrowing
2024-10-14 10:32:09 +02:00
akallabeth
f0c1cbe20f
[warnings] fix integer narrowing
2024-10-14 10:32:03 +02:00
akallabeth
dceb15d14e
[warnings] fix integer narrowing
2024-10-14 10:32:01 +02:00
akallabeth
8f069b2be4
[warnings] fix integer narrowing
2024-10-14 10:31:58 +02:00
akallabeth
62e556f4d0
[warnings] fix integer narrowing
2024-10-14 10:31:43 +02:00
akallabeth
343900d227
[crypto,cert] make a deep copy of the certificate chain
...
The parameters of freerdp_certificate_new_from_x509 are const, so only
work with a copy of the input.
2024-10-14 10:31:35 +02:00
Martin Fleisz
dcc288c3d1
Merge pull request #10704 from akallabeth/int-narrow-cleanups
...
Int narrow cleanups
2024-10-14 09:51:06 +02:00
David Fort
88ce44ed2e
Merge pull request #10724 from akallabeth/scard-status-string-terminate
...
[utils,smartcard] ensure '\0' termination for NDR
2024-10-10 22:21:38 +02:00
akallabeth
a12a2dc6af
[gdi,gfx] remove broken overlap check
2024-10-10 16:40:16 +02:00
akallabeth
dc8d8553e8
[utils,smartcard] ensure '\0' termination for NDR
...
NDR read functions do not exactly know which kind of string is read and
if it contains a '\0', so ensure that we add one large enought to hold a
unicode '\0'
2024-10-10 16:25:41 +02:00