Armin Novak
d015ba58de
[winpr,collections] fix sign warnings
2026-02-17 16:38:35 +01:00
Armin Novak
118afc0b95
[allocations] fix growth of preallocated buffers
...
* Replace * 2 with * sizeof(WCHAR) for string usages
* Grow streams and other buffers reasonably, e.g. add 128 elements per
try and check for possible overflows
* Add constant postfix to force them to 64bit
2026-02-17 13:54:34 +01:00
Armin Novak
81cf9f6cf0
[winpr,warnings] properly handle function return
2026-02-16 09:18:36 +01:00
Armin Novak
399d92f26e
[winpr] mark function pointers [[nodiscard]]
2026-02-15 23:57:23 +01:00
Armin Novak
606250f4cb
[winpr,smartcard] fix returned attribute length
...
SCARD_ATTR_DEVICE_SYSTEM_NAME_W requires twice the size, so multiply
before return.
2026-02-12 10:01:06 +01:00
Armin Novak
b6b32bf8c4
[winpr,test] replace sscanf
2026-02-10 16:56:48 +01:00
Armin Novak
47c538fd3f
[winpr] fix uninitialized variables
2026-02-10 16:56:44 +01:00
Armin Novak
6bf8793589
[winpr,smartcard] remove unused variable
2026-02-10 15:53:05 +01:00
Armin Novak
f8d85ac201
[winpr,smartcard] fix warnings
2026-02-10 15:53:05 +01:00
Armin Novak
52cf5d18f4
[winpr,utils] fix WITH_RESOURCE_VERSIONING
...
winpr_getApplicationDetailsVersion returned a wrong value.
2026-02-10 15:53:04 +01:00
Armin Novak
7a83036f9a
[winpr,smartcard] fix variable data type
2026-02-10 15:53:04 +01:00
akallabeth
e253643386
[winpr,smartcard] simplify PCSC_ReadDeviceSystemName
...
* If we read SCARD_ATTR_DEVICE_SYSTEM_NAME_A just pass the actual
destination buffer, no further processing required.
* In case of SCARD_ATTR_DEVICE_SYSTEM_NAME_W allocate a WCHAR version of
the result, copy back to destination buffer.
2026-02-09 10:27:09 +01:00
Martin Fleisz
67705cfb35
Merge pull request #12207 from akallabeth/vendor-by-app
...
Vendor by app
2026-02-09 10:24:17 +01:00
miguel-cv
19b8e80b70
Add missing attribute in smartcard_pcsc
...
Add SCARD_ATTR_DEVICE_SYSTEM_NAME_A and SCARD_ATTR_DEVICE_SYSTEM_NAME_W to be more compliant with what windows expects. Returns the (provided by pcsc) reader_name.
2026-01-30 09:15:11 +01:00
Armin Novak
5f7f1672ff
[winpr,utils] add application details getter/setter
...
* Allow an application to set a vendor/product/version namespace to search
for configuration files/settings/...
* Replace all WINPR_VENDOR_STRING et al macros with these getters
2026-01-29 22:47:40 +01:00
Armin Novak
81d6ed2784
[winpr,path] modify GetCombinedPath
...
Allow the subPath argument to be a format string with variadic
arguments. This allows to generate a subPath on the fly. This change is
API compatible.
2026-01-29 22:47:30 +01:00
akallabeth
d17dc23257
[winpr,test] TestSynchTimerQueue: use int64
...
The calculations might overflow or be negative, so use INT64 to store
and present the results.
2026-01-28 09:52:49 +01:00
Armin Novak
ba07955689
[client,sdl] handle clipboard events in SdlContext
2026-01-27 15:22:40 +01:00
akallabeth
b5b451e35b
Merge pull request #12192 from akallabeth/nodiscard
...
[winpr,platform] drop C23 [[nodiscard]]
2026-01-27 13:17:49 +01:00
Armin Novak
f443c1bc6f
[winpr,platform] drop C23 [[nodiscard]]
...
In WINPR_ATTR_NODISCARD drop the C23 [[nodiscard]] until we figure out
how to avoid compiler errors on fedora/gcc 15
2026-01-27 12:59:22 +01:00
akallabeth
cf63326799
[winpr,platform] fix duplicate deprecation define
2026-01-27 12:15:03 +01:00
akallabeth
076a8386a6
Merge pull request #12186 from akallabeth/error-handling-fixes
...
Error handling fixes
2026-01-26 17:05:19 +01:00
akallabeth
1e4c1cd526
[winpr] mark all WINPR_ATTR_MALLOC also nodiscard
2026-01-26 13:39:41 +01:00
akallabeth
d93fda1c56
[winpr,sspi] mark unused function parameters
...
silence warnings about unused parameters for API function
implementations
2026-01-26 11:26:50 +01:00
akallabeth
5013b28e8b
Merge pull request #12171 from jadahl/wip/ntlm-kerberos-package-info
...
Add support for querying SECPKG_ATTR_PACKAGE_INFO to NTLM and Kerberos
2026-01-25 17:04:48 +01:00
akallabeth
7d943a9c21
[documentation] fix a few doxygen warnings
2026-01-25 09:38:33 +01:00
akallabeth
75ca7c181f
[winpr,wlog] remove duplicate wlog destroy
2026-01-23 22:20:51 +01:00
akallabeth
2501c274f5
[winpr,platform] add WINPR_ATTR_NODISCARD macro
...
* add macro WINPR_ATTR_NODISCARD
* adjust C-23 checks for macros according to
https://en.cppreference.com/w/c/language/attributes.html
2026-01-23 17:13:54 +01:00
Jonas Ådahl
92ad023764
ntlm: Implement support for querying the package info attribute
2026-01-22 12:50:24 +01:00
Jonas Ådahl
d2c68dcada
kerberos: Implement support for querying the package info attribute
2026-01-22 12:50:24 +01:00
Jonas Ådahl
49b6d99c69
libwinpr/sspi: Expose free/allocate functions for context buffers
...
This will be necessary to allow implementing support for querying the
package info attribute.
2026-01-22 12:50:24 +01:00
Armin Novak
efe920c705
[winpr,platform] make WINPR_DEPRECATED_VAR more verbose
...
explicitly state [deprecated] in the compiler warning to make it more
visible why the warning was emitted.
2026-01-21 16:41:26 +01:00
akallabeth
8a53798049
[core,freerdp] eliminate uninitialized warning
2026-01-20 17:15:13 +01:00
akallabeth
cf0a37ceb9
[winpr,sspi] fix Heimdal support
...
Add support to kerberos_ATTR_AUTH_IDENTITY
2026-01-20 17:15:07 +01:00
akallabeth
5d89c9033e
[winpr,sspi] fix Heimdal support
...
Add support to kerberos_ATTR_AUTH_IDENTITY
2026-01-20 16:41:40 +01:00
Jonas Ådahl
0da2c31a9b
kerberos: Add support for querying SECPKG_ATTR_AUTH_IDENTITY
...
This krb5_unparse_name_flags() to retrieve the user part of the
principal, and krb5_princ_realm() for the domain, while checking for
buffer overflows before writing to the auth identity structure.
2026-01-20 15:22:41 +01:00
akallabeth
84d3d99338
[clang-tidy] clean up code warnings
2026-01-19 13:05:26 +01:00
akallabeth
fb8efd45f2
[c,format] fix format string and review warnings
2026-01-16 13:36:14 +01:00
akallabeth
35b9d1b338
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:33 +01:00
akallabeth
8388fea2f7
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:30 +01:00
akallabeth
7e521697f1
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:27 +01:00
akallabeth
67d9424d8b
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:25 +01:00
akallabeth
3d909cb301
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:22 +01:00
akallabeth
d72c3a618a
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:19 +01:00
akallabeth
66b644d563
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:16 +01:00
akallabeth
d15978d666
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:14 +01:00
akallabeth
1b9c7864de
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:11 +01:00
akallabeth
ec1e253a44
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:09 +01:00
akallabeth
1d8d4a6a09
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:06 +01:00
akallabeth
34daff7b35
[c,printf] fix wlog format string to match arguments
2026-01-16 11:43:04 +01:00