Commit Graph

3901 Commits

Author SHA1 Message Date
akallabeth
c5711f0a2e
[winpr,assert] coverity suppress CONSTANT_EXPRESSION_RESULT 2024-11-08 08:40:28 +01:00
Martin Fleisz
1520d94d33
Merge pull request #10797 from akallabeth/warn-fixes
Warn fixes
2024-11-07 13:50:51 +01:00
Martin Fleisz
c7486fc47b
Merge pull request #10801 from akallabeth/cleanups
Cleanups
2024-11-07 13:03:36 +01:00
akallabeth
d070857c03
[winpr,string] add wcsndup 2024-11-07 11:46:55 +01:00
akallabeth
3a1251fa0e
[winpr,path] WINPR_ATTR_MALLOC for winpr_GetConfigFilePath 2024-11-07 11:46:53 +01:00
akallabeth
617b4d966a [winpr,comm] enable comm for iOS
The functions are supported in the SDK so compile it in
2024-11-05 17:01:35 +01:00
akallabeth
d9f551b7ca
[winpr,comm] add dummy implementation
Add dummy implementation for platforms not supporting serial interfaces
2024-11-05 16:37:17 +01:00
akallabeth
d06a6d78cb
[file,namedpipe] clean up NamedPipeClientCreateFileA
simplify and improve error handling
2024-10-31 11:42:36 +01:00
akallabeth
4ec28e1f82
[warnings] fix -Wimplicit-int-conversion 2024-10-31 11:42:29 +01:00
akallabeth
dcf5a8e28c
[warnings] fix -Wswitch-default 2024-10-31 11:42:24 +01:00
akallabeth
a5b64effab
[winpr,stream] add functions to write INT16_BE and INT32_BE 2024-10-30 19:18:04 +01:00
akallabeth
8bb5d598fc
[winpr,stream] fix missing comma 2024-10-30 17:10:03 +01:00
akallabeth
d232037e18
[winpr,asn1] fix writing integers
ASN1 integers are signed.
2024-10-30 16:55:56 +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
555d46f7e2
[winpr,crypto] deactivate key and IV lenght checks
OpenSSL does not support that in older versions, deactivate for the time
being.
2024-10-30 13:22:57 +01:00
akallabeth
1eac8fa15e
[winpr,crypto] deprecate winpr_Cipher_New
Deprecate function in favor of new winpr_CipherNewEx with explict key
and IV length parameters, adjust test cases to test both.
2024-10-30 13:22:45 +01:00
akallabeth
9db7deb30b
[warnings] initialize ULARGE_INTEGER 2024-10-30 10:20:41 +01:00
akallabeth
10e7acdd49
[winpr,stream] add functions to write INT16_BE and INT32_BE 2024-10-29 15:50:05 +01:00
akallabeth
8aa49c3e93
[warnings] fix C23 extension warnings 2024-10-29 15:50:02 +01:00
akallabeth
2b95757a7a
[warnings] fix redundant casts 2024-10-29 15:49:59 +01:00
akallabeth
6548f1f9dd
[compiler] disable unknown pragma warnings
we compile with different compilers/checkers whith their own #pragma
do not warn us about that, we already know
2024-10-29 15:49:51 +01:00
akallabeth
aa954d9be9
[warnings] fix various compiler warnings 2024-10-29 15:49:43 +01:00
Martin Fleisz
fa71cb18f0
Merge pull request #10793 from akallabeth/ntlm-fixes
[winpr,sspi] fix NULL NTLM password handling
2024-10-28 09:44:20 +01:00
akallabeth
98335b7dde
Merge pull request #10792 from akallabeth/cov-assert-silence
[ci,assert] silence coverity on WINPR_ASSERT
2024-10-28 09:22:54 +01:00
akallabeth
c9a946f272
[winpr,sspi] fix NULL NTLM password handling
* Pass through the NULL, but fail as the hash matches the NULL hash
2024-10-28 09:09:56 +01:00
Martin Fleisz
56786ea606
Merge pull request #10786 from akallabeth/ntlm-fixes
Ntlm fixes
2024-10-28 09:04:57 +01:00
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
a60ac2321d
[compiler,macros] fix pragma by compiler support 2024-10-27 21:58:58 +01: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
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
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
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
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
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
f488d15b7a
[winpr,utils] update TestStream 2024-10-23 16:01:30 +02:00
Armin Novak
a84b303c23
[sysconf] _SC_GETPW_R_SIZE_MAX return checks
fix possible overflow with value returned from sysconf(_SC_GETPW_R_SIZE_MAX)
2024-10-23 10:34:11 +02:00
akallabeth
9caf38bbb6 [warnings] unify CommandLineParseCommaSeparatedValues
CommandLineParseCommaSeparatedValues does some internal hack to allow
the allocated char** to be cleaned up by free.
This enforces compiler warnings as the pointer types do not match.
Use a new free function CommandLineParserFree instead
2024-10-22 21:11:58 +02:00
akallabeth
f4270aeab8
[winpr,crypto] rename OUT
visual studio compilers do have some symbol clashes, rename the function
2024-10-22 13:30:40 +02:00
akallabeth
28037f100c
[warnings] fix sign comparison issues 2024-10-22 10:11:38 +02:00
akallabeth
b6e0a2381c
[winpr,crypto] fix duplicate include 2024-10-22 09:50:29 +02:00
akallabeth
b9aa91bfcb
[winpr,crypto] use inline functions for md4 2024-10-22 09:50:26 +02:00