Commit Graph

3236 Commits

Author SHA1 Message Date
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
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
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
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
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
akallabeth
e41f8eb61f
[warnings] redundant cast 2024-10-22 09:50:22 +02:00
akallabeth
4cf5b32733
[winpr,crypto] prefer inline functions for md5 2024-10-22 09:50:16 +02:00
akallabeth
fd8947ddc1
[winpr,kerberos] fix a leak in failure handling 2024-10-22 09:47:57 +02:00
akallabeth
b4dab0f419
[warnings] replace getpwnam 2024-10-22 09:41:35 +02:00
akallabeth
b253e6ba0a
[winpr,sspi] refactor kerberos_rd_tgt_token
the function was quite complex, split it up into multiple subfunctions:

* kerberos_rd_tgt_req
  * kerberos_rd_tgt_req_tag2
  * kerberos_rd_tgt_req_tag3
* kerberos_rd_tgt_rep
2024-10-21 15:05:51 +02:00
akallabeth
ab31eb7a50
[winpr,sspi] add better return values for NTLM 2024-10-21 15:05:43 +02:00
akallabeth
f346b94835
replace SIZE_T with size_t 2024-10-17 12:40:22 +02:00
akallabeth
52d32d812c
[winpr,utils] lock message queue on size 2024-10-16 13:32:18 +02:00
akallabeth
2e73ead996
[c stdlib] replace strlen/strcpy/strcmp
Use length checking versions if possible. Also replaces the wide
character versions and TCHAR versions
2024-10-15 16:30:13 +02:00
akallabeth
bd28c2d4bf
[warnings] fix integer narrowing 2024-10-14 10:31:41 +02:00
akallabeth
1cdc864c7d
[warnings] fix integer narrowing 2024-10-14 10:31:38 +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
akallabeth
7ea8774728 Update timezone definitions 2024-10-12 07:08:14 +00:00
akallabeth
d56fac7582
[ci,timezone] remove clang-format off
we do format the files now properly before creating the automated pull,
the workaround is no longer required
2024-10-12 09:04:39 +02:00
akallabeth
969e212570
[winpr,timezone] skip newline in generated timezonemap 2024-10-12 08:51:00 +02:00
akallabeth
2cbb5685b4 [winpr,timezone] deactivate clang-format for generated files 2024-10-11 09:16:37 +02:00
Armin Novak
9531b7b270
[winpr,file] add missing WINPR_ATTR_MALLOC 2024-10-09 10:41:19 +02:00
akallabeth
2d10effd3c
Merge pull request #10716 from akallabeth/kerberos-return
[winpr,sspi] fix kerberos return on get_credentials
2024-10-08 17:26:43 +02:00
akallabeth
1fe0a6f40e
[winpr,sspi] fix kerberos return on get_credentials
return SEC_E_NO_CREDENTIALS
2024-10-08 10:33:30 +02:00
akallabeth
1952cd0e66
[winpr,utils] fix undefined unwind symbols
on arm some reason codes are not defined.
2024-10-08 10:09:19 +02:00
akallabeth
7e8c374fe2
[winpr,file] make handle creators return const
* let the file handle creators return const HANDLE_CREATOR
* for comm port use winpr_definition_add(-DWINPR_HAVE_SERIAL_SUPPORT) to
  have the definition visible at correct scope
* create namedPipeClient.h for handle creator function declaration
2024-10-07 10:15:34 +02:00
akallabeth
4fc2e1bb3e
[warnings] fix integer narrowing 2024-10-03 21:21:44 +02:00
akallabeth
4b5274c34f
[warnings] fix integer narrowing 2024-10-03 21:21:44 +02:00
akallabeth
544c6ddce6
[warnings] fix integer narrowing 2024-10-03 21:21:42 +02:00
akallabeth
53497a572d
[warnings] fix integer narrowing 2024-10-03 21:21:42 +02:00
akallabeth
57ed259be2
[warnings] fix integer narrowing 2024-10-03 21:21:41 +02:00
akallabeth
b19dcf8d68
[warnings] fix integer narrowing 2024-10-03 21:21:41 +02:00
akallabeth
eceab9aedb
[warnings] fix integer narrowing 2024-10-03 21:21:40 +02:00
akallabeth
704597937d
[warnings] fix integer narrowing 2024-10-03 21:21:39 +02:00
akallabeth
6c8c67b385
Merge pull request #10677 from akallabeth/int-narrow
Int narrow
2024-10-03 21:17:56 +02:00