Armin Novak
8d783d5189
[covertity] fix various warnings
2024-06-05 09:19:59 +02:00
akallabeth
c07ba558cb
[warnings] fix various compiler warnings
2024-06-04 13:23:24 +02:00
akallabeth
cf586b4d2e
Merge pull request #10242 from akallabeth/openssl3-md5
...
[winpr,crypto] OpenSSL3 md5 support
2024-06-04 10:50:34 +02:00
akallabeth
97d7a3fc6d
[winpr,crypto] OpenSSL3 md5 support
...
Just like https://github.com/MariaDB/server/pull/2010 add support for
OpenSSL3 MD5 in FIPS mode.
2024-06-04 10:27:27 +02:00
akallabeth
cefe7866a1
[winpr,pool] fix threadpool initialization
2024-06-03 14:51:04 +02:00
akallabeth
cbd2f5e65f
Merge pull request #10238 from akallabeth/krb-kdc-url
...
[sspi,krb] check for empty kdcUrl
2024-06-03 13:01:24 +02:00
akallabeth
a69dd9ad36
[sspi,krb] check for empty kdcUrl
2024-06-03 12:28:49 +02:00
akallabeth
8b23d785fa
[winpr,makecert] fix winpr-makecert month calculations
...
* Fix too tight range check
* Accumulated years and months in calculation
2024-06-03 10:05:18 +02:00
Armin Novak
b19d9619f8
[utils,unwind] log _Unwind_Backtrace failure
2024-05-29 14:35:51 +02:00
Armin Novak
1dcac1618c
[utils,unwind] add return to string functions
2024-05-29 09:25:25 +02:00
akallabeth
ef4c1766d2
[winpr,thread] implement SetThreadPriority
2024-05-24 15:44:17 +02:00
akallabeth
0b035d69e1
[winpr,wlog] fix format string
...
the millisecond format string should be "%03u" instead of "%02u"
2024-05-21 14:57:26 +02:00
akallabeth
48381d0d60
[winpr,utils] add json-c compat
...
for old json-c releases < 0.14.0 add a json_object_new_null replacement
2024-05-17 12:43:02 +02:00
akallabeth
4b3ecfac47
[winpr,utils] fix cJSON detection
...
* pkg-config sets CJSON_FOUND, check for that instead of the paths, which
might be unset or set to <var>-NOTFOUND
* move detection to own file. find_package targets are meant to be used
in same directory or below, but we define the WinPR target one above,
so include it in parent
2024-05-16 13:27:22 +02:00
Armin Novak
4bdc9ad950
[winpr,utils] fix cJSON fallback detection
2024-05-15 13:46:38 +02:00
akallabeth
de49d32004
[cmake] fallback detection for cJSON
2024-05-14 21:16:43 +02:00
akallabeth
1b735a5c17
[winpr,utils] add JSON parser wrapper
...
as we now support cJSON and json-c we need to wrap the functions we use.
also allows drop in replacements for older cJSON versions lacking
certain functions.
2024-05-14 20:45:25 +02:00
akallabeth
b6db375b9b
[winpr,utils] fix libjpeg const cast
...
libjpeg API is not const correct, so we need to cast away const
fixes #10175
2024-05-12 20:30:25 +02:00
akallabeth
15fc460c6f
[winpr,timezone] remove struct from struct DIR
...
fix #10176
2024-05-12 20:19:13 +02:00
akallabeth
a86ca848d5
[winpr,timezone] fix NULL strdup
2024-05-12 20:17:06 +02:00
Armin Novak
e272eb3966
[warnings] fix Wshadow warnings
2024-05-08 15:30:01 +02:00
akallabeth
1b8221e5bf
[warnings] fix various minor warnings
2024-05-08 14:53:39 +02:00
Armin Novak
474e3fa983
[winpr,timezone] fix missing const
2024-05-08 14:53:39 +02:00
akallabeth
95a7f5019a
[winpr,timezone] fix clang-tidy warnings
2024-05-08 10:08:08 +02:00
akallabeth
f9443a080e
[utils,doc] update timezone sync procedure
...
* add new C# utility to generate timezone mappings
* update procedure to follow for updating timezones
* remove obsolete TimeZones.csx script
* update generated files with new tool
2024-05-08 10:08:08 +02:00
akallabeth
277907d810
[winpr,timezone] add C# timezone extractor
2024-05-08 10:08:08 +02:00
akallabeth
cd18532f45
[winpr,timezone] add IANA to short mapping
...
* Add a generator for IANA and short zone name mappings.
* Add a function to get all IANA mappings for a short zone name.
2024-05-08 10:08:08 +02:00
akallabeth
52a884ed2e
[winpr,timezone] refactor timezone mapping
...
* add option to use ICU as a fallback mapping (eliminate need for
WindowsZones mapping list)
* extract timezone related settings from localtime_r and eliminate the
need to parse the complex TimeZones table
* Add new TimeZoneNameMap to map IANA to windows names (Id, Standard,
Daylight and Display names)
* Implement GetDynamicTimeZoneInformation
2024-05-08 10:08:08 +02:00
akallabeth
3049181d9b
[winpr,sspi] skip IP addresses for kerberos auth
...
kerberos requires hostnames to authenticate, if we connect with a IP
address do not try kerberos based authentication
2024-05-07 10:38:30 +02:00
akallabeth
9b6fcf728a
[winpr,asn1] fix undefined shift
2024-05-03 09:39:13 +02:00
akallabeth
8b382c8cec
[winpr,timezone] update
...
* update windowsZones.xml url
* update timezones
2024-04-23 09:54:52 +02:00
akallabeth
fed8943447
[pkcs11.h] remove extra-semi-stmt
2024-04-22 18:02:03 +02:00
Ondrej Holy
35d8bc1782
[winpr,ncrypt] use preferably p11-kit-proxy.so
...
Currently, the opensc-pkcs11.so library is used for ncrypt support.
However, the p11-kit-proxy.so library is able to aggregate more pkcs11
modules at runtime (OpenSC is one of them, but also some third party
modules that are not supported by OpenSC). Let's use preferably
p11-kit-proxy.so if available.
2024-04-22 17:42:52 +02:00
Ondrej Holy
5a28b046d5
[winpr,ncrypt] bundle pkcs11.h and drop pkcs11-helper dependency
...
The ncrypt implementation currently relies on the pkcs11-helper library.
That is not available on RHEL for example. Let's bundle the standardized
header file from https://github.com/latchset/pkcs11-headers to avoid the
need for extra dependency.
Related: https://github.com/FreeRDP/FreeRDP/discussions/9982
2024-04-22 17:42:52 +02:00
Ondrej Holy
cef3d5e9d4
[winpr,ncrypt] replace deprecated symbol
...
The CKK_ECDSA symbol is deprecated, it is recommended to use CKK_EC
instead. Let's do this as a preparation for the follow-up changes.
2024-04-22 17:42:52 +02:00
Ondrej Holy
73991c48ce
[winpr,ncrypt] obtain module path from provider
...
Currently, the module path is hardcoded in the build_pkinit_args function.
Let's obtain the module path from provider as a preparation for the
follow-up changes.
2024-04-22 17:42:52 +02:00
Ondrej Holy
79975cfbe3
[winpr,ncrypt] drop redundant library paths
...
The pkcs11 implementaion contains a list of the standard library paths
for various architectures and distribution. But that list also contains
just the opensc-pkcs11.so basename without path. Therefor I am conviced
that all those other entries can be simply dropped. Let's do that as
a preparation for the follow-up changes.
2024-04-22 17:42:52 +02:00
akallabeth
a1a8f832f4
[winpr,synch] fix extra-semi warning
2024-04-22 17:41:46 +02:00
akallabeth
1687a6424a
start-3.5.2-dev0
2024-04-22 11:18:39 +02:00
akallabeth
eda5c99686
release-3.5.1
2024-04-22 11:18:39 +02:00
akallabeth
4e756306b9
[winpr,timezone] fix unused result warnings
2024-04-21 11:00:47 +02:00
Mike Gilbert
445bd9a80c
winpr: fix fallback timezone name
...
Populate StandardName and DaylightName with 2-byte WCHAR values instead
of 4-byte wchar_t values on Linux.
2024-04-20 21:19:59 +02:00
Mike Gilbert
ca8c71a208
winpr: improve timezone detection when TZ is set
...
The TZ variable may either contain a direct timezone representation, or
a reference to a file in tzfile(5) format. Mapping a direct timezone
representation to a Windows timezone would be difficult.
According to tzset(3), a file reference should start with a colon, though
glibc treats it as optional. It may be an absolute path or a path relative
to /usr/share/zoneinfo. Adjust winpr_detect_windows_time_zone to accept
either.
2024-04-20 21:19:59 +02:00
akallabeth
71e78bedd7
[warnings] fixed sign and const
...
* fix various char/BYTE sign warnings
* fix various const warnings
* fix format string size_t
* remove unused CMake variables
2024-04-18 11:05:58 +02:00
Armin Novak
7f896b649e
[winpr,clipboard] fix resource leak
2024-04-17 18:47:16 +02:00
Armin Novak
28e9094f08
[gcc] fix missing malloc warning macros
...
* Add missing WINPR_ATTR_MALLOC
* Add missing WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
2024-04-17 18:47:16 +02:00
akallabeth
fdc253e909
start 3.5.1-dev0 cycle
2024-04-16 21:20:04 +02:00
akallabeth
cab5adde26
release-3.5.0
2024-04-16 21:20:04 +02:00
Armin Novak
2500fb7bfb
[cleanup] refactor some checks
2024-04-15 12:40:01 +02:00
Armin Novak
140b4d7fcb
[coverity] 1543161 Data race condition
2024-04-15 12:40:01 +02:00
Armin Novak
237dfcbd9f
[coverity] 1543163 Unintentional integer overflow
2024-04-15 11:30:31 +02:00
Armin Novak
a75ddcc091
[coverity] 1543036 Unintentional integer overflow
2024-04-15 11:30:31 +02:00
Armin Novak
98fa2d406d
[coverity] 1543226 Data race condition
2024-04-15 11:30:31 +02:00
Armin Novak
e4498df607
[coverity] 1543089 Data race condition
2024-04-15 11:30:31 +02:00
Armin Novak
e3f3f85391
[coverity] 1543117 Argument cannot be negative
2024-04-15 11:30:31 +02:00
akallabeth
0c9fb50170
[coverity] fix unchecked return
2024-04-12 13:30:35 +02:00
akallabeth
2c7a5f7bee
[winpr,env] WINPR_ATTR_MALLOC
...
mark the free functions for environment strings
2024-04-12 13:30:35 +02:00
akallabeth
c9850bb299
[coverity] 1543134 Explicit null dereferenced
2024-04-12 12:41:42 +02:00
akallabeth
8f9707897c
[coverity] 1543219 Dereference before null check
2024-04-12 12:41:42 +02:00
akallabeth
0304897f7b
[coverity] 1543175 Dereference null return value
2024-04-12 12:41:42 +02:00
akallabeth
dba673b678
[coverity] 1543077 Dereference null return value
2024-04-12 12:41:42 +02:00
akallabeth
9ced090cea
[coverity] 1543043 Dereference null return value
2024-04-12 12:41:42 +02:00
akallabeth
68f0e0a325
[winpr] WINPR_ATTR_MALLOC HANDLE functions
...
mark functions creating handles with WINPR_ATTR_MALLOC to ensure
compiler checks for proper handle close
2024-04-12 12:41:42 +02:00
akallabeth
0a34b1e95d
[coverity] 1543271 Explicit null dereferenced
2024-04-12 09:45:09 +02:00
akallabeth
0c7537c840
[coverity] 1543230 Missing unlock
2024-04-12 09:45:09 +02:00
akallabeth
6217076b47
[coverity] 1543030 Dereference before null check
2024-04-12 09:45:09 +02:00
akallabeth
f9d4b75610
[coverity] 1543101 Resource leak
2024-04-12 09:45:09 +02:00
akallabeth
e9e9e42a71
[coverity] 1543211 Resource leak
2024-04-12 09:45:09 +02:00
akallabeth
3a76eccf16
[coverity] 1543171 Resource leak
2024-04-12 09:45:09 +02:00
akallabeth
79d3825df0
[coverity] 1543256 Dereference null return value
2024-04-12 09:45:09 +02:00
akallabeth
61062128e2
[coverity] 1543067 Out-of-bounds read
2024-04-12 09:45:09 +02:00
akallabeth
e063d26bfe
[coverity] 1543053 Resource leak
2024-04-12 09:45:09 +02:00
akallabeth
960b35d09c
[coverity] 1543038 Resource leak
2024-04-12 09:45:09 +02:00
akallabeth
19d9afc0b4
[coverity] 1543289 Double free
2024-04-12 09:45:09 +02:00
akallabeth
d865321571
[coverity] 1543221 Resource leak
2024-04-11 12:04:07 +02:00
akallabeth
8bef31fdae
[coverity] 1543108 Resource leak
2024-04-11 12:04:07 +02:00
akallabeth
843ecfc01a
[coverity] 1543172 Pointer to local outside scope
2024-04-11 12:04:07 +02:00
akallabeth
3997eeb5b3
[coverity] 1543227 Readlink used insecurely
2024-04-11 12:04:07 +02:00
akallabeth
3b04ab95d4
[coverity] 1543146 Use after free
2024-04-11 12:04:07 +02:00
akallabeth
9768a5f48f
[coverity] 1543257 Buffer not null terminated
2024-04-11 12:04:07 +02:00
akallabeth
4a56e2f74c
[winpr,kerberos] use profile_abandon
...
suggested by @greghudson to just release the profile and not flush
changes back to config file. See #9766
2024-04-03 15:37:43 +02:00
Armin Novak
18612bb513
[mingw] fix missing shlwapi link
2024-04-02 09:31:55 +02:00
Kai Pastor
4b52dfd70c
Add #include to declare winpr_strerror
2024-04-01 09:31:57 +02:00
akallabeth
678ff144ab
[cmake] unify windows resource file generation
...
* use a macro to add resource files for executables and shared libraries
* use that macro to declare targets
* use that macro to set library/binary versioning
* use that macro to set target output name
* use a macro to create manpages and names
2024-03-20 11:17:18 +01:00
akallabeth
09ff2966af
[cmake] unify BSD related configuration in PlatformDefaults.cmake
2024-03-20 09:11:08 +01:00
akallabeth
92ed8b3916
[winpr,timezone] outside definition timezone file
...
allow defining the filepath of timezone file in buildsystem adjusting it
without a required code change.
2024-03-20 09:11:08 +01:00
akallabeth
f4b7c59915
[cmake] move platform defines to common include
...
* Move platform specific settings to a common CMake include
2024-03-20 09:11:08 +01:00
akallabeth
1bf3f5335e
[winpr,file] clean up FileSetFileTime
...
* Split POSIX and BSD implementations
* Add stub for unuspported platforms
2024-03-20 09:11:08 +01:00
Kai Pastor
c8c70ad730
Don't remove duplicate link libs
2024-03-19 08:33:54 +01:00
akallabeth
91b143be54
[winpr,clipboard] fix WCHAR buffer size
2024-03-18 22:33:54 +01:00
akallabeth
4b73e7525c
[winpr,crt] fix incompatible WCHAR pointer
2024-03-18 13:27:32 +01:00
akallabeth
199b51cebb
[winpr,smartcard] fix incompatible PCSC_SCardListReaders pointer
2024-03-18 13:27:32 +01:00
akallabeth
18ce4b35ce
[winpr,clipboard] fix incompatible WCHAR pointer
2024-03-18 13:27:32 +01:00
akallabeth
1c0bab542b
[winpr,sysinfo] clock_gettime is available since POSIX 1993
2024-03-18 08:52:22 +01:00
akallabeth
8df13033d5
start 3.4.1-dev0 cycle
2024-03-14 11:28:33 +01:00
akallabeth
708f376489
release-3.4.0
2024-03-14 11:28:33 +01:00
akallabeth
d87d598305
[winpr] add WINPR_ALIGN64 defines
...
Add defines to aling struct members to 8 bytes
2024-03-12 14:24:36 +01:00
Kai Pastor
f2f9c59b01
Disable WINPR_THREAD_POOL for mingw 7
2024-03-12 09:39:45 +01:00
Kai Pastor
47354c4519
Fix MSVC arm64
2024-03-12 08:40:42 +01:00
akallabeth
4732f379d4
[winpr,sysinfo] unify time function use
...
* Add new function winpr_GetTickCount64NS for high resolution tick
count with (up to) nanosecond resolution
* Add new function winpr_GetUnixTimeNS for high resolution system time
as nanoseconds since 1.1.1970
* Replace use of clock_gettime and gettimeofday in whole project with
these new functions
* Add new macros WINPR_TIME_NS_TO_* and WINPR_TIME_NS_REM_* to convert
the nano second count to less resolution or get the remainder in the
desired resolution
2024-03-11 09:54:10 +01:00
akallabeth
d8c0e7546e
[winpr,utils] allow quoted sub arguments
...
fixes #9890 .
2024-02-27 14:15:56 +01:00
akallabeth
f5704e025f
start development cycle 3.3.1-dev0
2024-02-22 15:18:30 +01:00
akallabeth
a1d8b55048
update release to 3.3.0
2024-02-22 15:18:30 +01:00
akallabeth
43eae6029f
[clang-tidy] fix various review warnings
2024-02-22 12:31:50 +01:00
akallabeth
d7ebec5a65
[tidy] move loop variable declaration to loop
2024-02-22 12:31:50 +01:00
Armin Novak
f51fdb2813
[winpr,clipboard] support alternate bitmap mime types
2024-02-22 09:33:59 +01:00
Armin Novak
894474b161
[winpr,utils] improve winpr image API
...
* Add checks for bitmap read functions
* Add more unit tests
* Do not expose internals to WinPR
2024-02-22 09:33:59 +01:00
akallabeth
b894199f72
[winpr,collections] add generic string clone functions
...
The ArrayList, HashTable, ... New functions require
void* (*fkt)(const void* ptr) type functions. Provide a generic wrapper
for CHAR and WCHAR strdup to eliminate warnings. Also export a
corresponding free function to avoid issues with runtime
differences.
2024-02-15 11:49:16 +01:00
akallabeth
d0dc657412
[build] delete unused static functions
2024-02-15 11:49:16 +01:00
akallabeth
0e44b2c674
[clang-tidy] clang-analyzer-unix.Malloc
2024-02-15 11:49:16 +01:00
akallabeth
81d2c1f057
[clang-tidy] clang-analyzer-core.NullDereference
2024-02-15 11:49:16 +01:00
akallabeth
f69e1fe697
[clang-tidy] readability-duplicate-include
2024-02-15 11:49:16 +01:00
akallabeth
0ba995655d
[clang-tidy] cppcoreguidelines-init-variables
2024-02-15 11:49:16 +01:00
akallabeth
207def5c56
[clang-tidy] readability-isolate-declaration
2024-02-15 11:49:16 +01:00
Armin Novak
70f12ac871
[winpr,image] use fuzzy compare
...
* Add winpr_image_equal_ex to allow comparison of lossy compressed
formats, ignoring color depth and alpha
* Adjust tests to utilize winpr_image_equal_ex
2024-02-14 19:04:50 +01:00
akallabeth
28a2bf0848
[winpr,crypto] simplify winpr_Digest_Init_Allow_FIPS
2024-02-13 19:54:25 +01:00
akallabeth
fe37bc80d4
[winpr,crypto] fix WITH_INTERNAL_MD5 handling
...
If WITH_INTERNAL_MD5=ON also use it with winpr_Digest_Init_Allow_FIPS
2024-02-13 17:27:03 +01:00
akallabeth
e2e6d09256
[cmake] use DEFAULT_DEBUG_OPTION for all
2024-02-13 17:06:00 +01:00
akallabeth
b193f9ab59
[cmake] guard cmake_policy(CMP0091)
...
only set the policy to NEW if it is defined
2024-02-13 16:22:37 +01:00
akallabeth
cbab66a249
[warnings] fix incompatible pointer types
2024-02-12 10:23:27 +01:00
akallabeth
8b9c8732f3
[warnings] fix void pointer used in arithmetic
2024-02-12 10:23:27 +01:00
akallabeth
0d68cb4f42
[build,attr] fix WINPR_ATTR_MALLOC
...
* do not use this attribute if the free function takes pointer to pointer
* audio_format_new must be freed by audio_formats_free
2024-02-12 10:23:27 +01:00
akallabeth
78818aec34
[client,sdl] enable screensaver
...
by default sdl disables screensaver.
2024-02-09 10:29:08 +01:00
akallabeth
b5660035ae
[winpr,image] add support for WebP, JPEG and libpng
2024-02-07 10:04:08 +01:00
akallabeth
2fffcd64b9
[winpr] use winpr_strerror instead of strerror
...
use the wrapper from WinPR to use the best implementation available.
2024-02-06 15:45:47 +01:00
akallabeth
c415ec1110
[winpr,utils] use strerror_s or strerror_r
...
prefer to use strerror_s over strerror_r and strerror to convert errno
to strings.
2024-02-06 15:45:47 +01:00
akallabeth
ba8cf8cf21
[build] fix Wmismatched-deallocator warnings
...
With custom malloc function attributes the fail path in the _New
functions produces warnings due to allocator mismatches. Silence them.
2024-02-05 08:16:55 +01:00
akallabeth
bb42d425ed
[gcc,clang] add support for attribute(malloc)
...
Mark all malloc like functions and add their appropriate free function
to let the compiler complain on mismatches
2024-02-02 15:10:40 +01:00
akallabeth
bc23b205b5
[release] start new development cycle
2024-01-19 09:57:41 +01:00
akallabeth
bb87d4ca50
[release] update to 3.2.0
2024-01-19 09:57:41 +01:00
akallabeth
575d42312a
[code] improve error checks on free
2024-01-19 09:57:41 +01:00
Armin Novak
5298580bbd
[winpr,sspi] properly log all kerberos calls
...
to ease debugging log each failure of a kerberos related function along
with location and function name
2024-01-15 08:10:30 +01:00
akallabeth
78cdb555c5
[winpr,sysinfo] add additional neon check
...
systems not explicitly handled in IsProcessorFeaturePresent now enable
NEON intrinsics if __ARM_NEON is defined.
Fixes #9746
2024-01-10 09:27:46 +01:00
akallabeth
f6a208f75e
[cmake] generate relative pkgconfig path
...
generate the relative pkgconfig path from the actual install locations.
fixes #9718
2024-01-05 14:19:34 +01:00
Armin Novak
87557b1e4e
[release] start new development cycle 3.1.1-dev0
2023-12-22 17:29:20 +01:00
Armin Novak
959a195df7
[release] update version to 3.1.0
2023-12-22 17:29:20 +01:00
Armin Novak
a7decba8c2
[cmake] unify common options
2023-12-22 16:21:30 +01:00
Armin Novak
7debd0f621
[cmake] set policy 0091
...
On windows we need to set the runtime linker settings extra
https://cmake.org/cmake/help/latest/policy/CMP0091.html
2023-12-22 15:37:56 +01:00
Armin Novak
d3d9302fa9
[cmake,winpr] fixed typo
2023-12-22 15:37:56 +01:00
Armin Novak
175a3ca09a
[cmake] do not append EXECUTABLE_SUFFIX to OUTPUT_NAME
2023-12-22 15:37:56 +01:00
Armin Novak
7d641a67b9
[doc,manpage] name manpages versioned
...
if WITH_BINARY_VERSIONING is activated also version the manpages to
match the binary names
2023-12-22 10:24:09 +01:00
Armin Novak
b04271ae2d
[cmake] add executable versioning
...
optionally append API version to generated binaries
2023-12-21 18:56:51 +01:00
Armin Novak
36f3aa68a7
[cmake] add -DWITH_LIBRESSL option
...
* this option forces LibreSSL detection using CMake files, disables
OpenSSL and MbedTLS detection
* Sets compatiblity options with OpenSSL to allow build to succeed
2023-12-21 07:11:12 +01:00
Armin Novak
5b0ee107bf
[winpr,crt] fix wcstok_s
2023-12-20 09:03:58 +01:00
Armin Novak
9575f386cd
fixed WCHAR constants, use endian safe definitions
2023-12-20 09:03:58 +01:00
Armin Novak
28e5167435
[unicode] fix definition of _wcschr search char
2023-12-20 09:03:58 +01:00
Armin Novak
da49127a78
[unicode] remove obsolete bigendian defines
2023-12-20 09:03:58 +01:00
Armin Novak
198774c035
[compat,libressl] fix compilation issues
2023-12-19 20:44:39 +01:00
David Fort
8d461f40ab
[build] fix some warnings
2023-12-19 16:34:41 +01:00
Marc-André Moreau
6fbd447342
migrate to mbedtls 3.x with mbedtls 2.x backward compatibility
2023-12-19 11:34:24 +01:00
Armin Novak
d3716ef0ba
[warnings] fixed -Woverflow
2023-12-13 13:24:22 +01:00
Armin Novak
879e68c02b
[warnings] fixed -Wincompatible-pointer-types
2023-12-13 13:24:22 +01:00
Armin Novak
49c52b1ee8
start 3.0.1-dev0 cycle
2023-12-12 19:36:54 +01:00
Armin Novak
a34fa7c49d
release-3.0.0
2023-12-12 19:36:54 +01:00
Armin Novak
6f723e9f4d
[winpr,crt] add InitializeConstWCharFromUtf8
2023-12-12 19:36:54 +01:00
Armin Novak
30494d0c93
[winpr,crt] add return to ByteSwapUnicode
2023-12-12 19:36:54 +01:00
Armin Novak
fad30cce1b
[winpr,crt] fix ICU string convert
...
use ucnv_convert to make conversion endian safe
2023-12-11 21:25:31 +01:00
Vic Lee
c71de3f432
[winpr,timer] allow compilation to continue without timer support.
2023-12-11 08:51:59 +01:00
Vic Lee
97ef5d09e9
[core,crypto] fix missing OpenSSL includes.
2023-12-11 08:51:59 +01:00
r-a-sattarov
dcefd4f861
E2K: added initial support of MCST Elbrus 2000 CPU architecture
...
Ref: https://en.wikipedia.org/wiki/Elbrus_(computer)
2023-12-04 11:51:46 +01:00
akallabeth
615fcc4370
[cmake] prevent in source builds
2023-11-28 12:14:55 +01:00
akallabeth
1b31852d32
[git] remove .gitignore
...
we do no longer allow in source builds, so remove all the .gitignore
files just hiding generated files
2023-11-28 12:14:55 +01:00
Armin Novak
6547b2dfe7
started 3.0.0-dev6 cycle
2023-11-27 11:04:16 +01:00
Armin Novak
e6fffdb7b0
release 3.0.0-rc0
2023-11-27 11:04:16 +01:00
Armin Novak
3f3f5010bd
[test,unicode] fix test result comparison
...
If the buffer size was too small do not expect success and skip the
memcmp.
2023-11-24 18:19:03 +01:00
Armin Novak
0bd76e256b
Revert "Refactor TestUnicodeConversion"
...
This reverts commit d1dcae5b4a
.
2023-11-24 18:19:03 +01:00
Armin Novak
88697183b9
[winpr,unicode] simplify unicode functions
2023-11-24 18:19:03 +01:00
akallabeth
e3a84921de
[core,gateway] fix TSG_PACKET_TYPE_QUARENC_RESPONSE
...
parsing of TSG_PACKET_TYPE_QUARENC_RESPONSE was incomplete, fix that
2023-11-20 18:00:42 +01:00
Armin Novak
f1ddc19806
[winpr,str] add winpr_vasprintf
2023-11-20 18:00:42 +01:00
David Fort
061148f856
[nla] initial server-side remote credential guard support
...
Adds support for server-side remote credential guard in NLA. When enabled that allows
the remote user to connect without shipping credentials in TSCred packets. Instead
it will send his TGT encoded with a TGS from the remote server. This way the server
is able to populate that TGT in a local credential cache without knowing the user's
password.
The patch only treats the NLA part and does not contain the associated RDPEAR channel
that allows to have the complete interaction to retrieve new access tokens.
2023-11-20 16:17:00 +01:00
Richard Markiewicz
a4e7aba97c
[cmake] fix winpr build with FREERDP_UNIFIED_BUILD off
2023-11-17 08:39:22 +01:00
Armin Novak
e0e72f9c28
[cmake] use CMAKE_MSVC_RUNTIME_LIBRARY
...
* Increase required CMake version to 3.15 (windows only)
* Use
https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html#prop_tgt:MSVC_RUNTIME_LIBRARY
to select windows runtime
2023-11-16 10:40:04 +01:00
David Fort
4e2e7e0eae
[build] fix mingw build on Ubuntu 22.04
...
Seems like the version check was not ok and build was failing on Ubuntu 22.04.
2023-11-13 19:43:44 +01:00
David Fort
0d975f9c27
spnego: add NegoEx in known mechType and don't segfault with unknown mechType
...
NegoEx is a known and very common mechType when the client is mstsc.
The patch also fixes a segfault that was happening when we were logging a mech that
we don't support.
2023-11-13 19:43:44 +01:00
akallabeth
13b44b8b77
[ifdef] properly check for defined
2023-11-10 09:58:23 +01:00
Armin Novak
98a4eb77ef
[core] VirtualChannelChunkSize adjustments
...
* add CHANNEL_CHUNK_MAX_LENGTH
* remove duplicate definitions
* default to CHANNEL_CHUNK_MAX_LENGTH
2023-11-03 12:43:25 +01:00
akallabeth
c5cd40f1bc
[winpr,sspi] add some missing krb5 return checks
2023-10-24 12:16:38 +02:00
akallabeth
afc9ddd15f
[winpr,sspi] uppdercase on copy of string
2023-10-24 12:16:38 +02:00
Armin Novak
60dc6081de
[winpr,tools] WITH_WINPR_TOOLS now single truth
...
use all preconditions for the default of WITH_WINPR_TOOLS and do not
check these later on.
2023-10-19 13:43:57 +02:00
akallabeth
92e453754b
[CMake] add public headers to targets
...
Add all public headers to the respective library targets.
This helps an IDE to show the headers grouped to the correct target.
2023-10-19 13:43:57 +02:00
akallabeth
cc6cfd5e7d
[warnings] silence warnings for GetProcAddress
2023-10-17 11:07:11 +02:00
akallabeth
7a8e1442bf
[warnings] add pragma to silence pedantic warnings
2023-10-17 11:07:11 +02:00
Armin Novak
60390ea40c
[pragma] unify compiler diagnostics
2023-10-16 15:10:13 +02:00
Armin Novak
c91a250623
[warnings] add WINPR_FORMAT_ARG
...
with WINPR_FORMAT_ARG format strings are marked for MSVC to avoid
warnings
2023-10-16 15:10:13 +02:00
Armin Novak
a16479f5d5
[winpr,ncrypt] cast constants to SECURITY_STATUS
2023-10-16 15:10:13 +02:00
Armin Novak
07543a6042
[warnings] fix various warnings
...
* missing const in casts
* missing static for functions
* missing WINPR_ATTR_FORMAT_ARG for printf like functions
2023-10-16 15:10:13 +02:00
Armin Novak
9f7cfe51ba
[pubsub] fix API definitons to avoid warnings
2023-10-16 15:10:13 +02:00
Armin Novak
2b51551cb8
[winpr,tests] remove always false check
2023-10-16 15:10:13 +02:00
Armin Novak
a7e8a72396
[winpr] fallback to pkg-config for uriparser
...
older versions do not ship a CMake configuration, fall back to
pkg-config based detection in that case.
2023-10-16 15:10:13 +02:00
akallabeth
25f3633dc5
[systemd] moved detection to module
2023-10-10 22:59:53 +02:00
akallabeth
019bdc564b
[uriparser] default to on if detected
2023-10-10 22:59:53 +02:00
akallabeth
8dedcc9068
[winpr,string] add uriparse as optional
2023-10-10 19:35:27 +02:00
akallabeth
13a3d6d988
[winpr,tools] warn if unimplemented function called
2023-10-10 19:35:27 +02:00
akallabeth
d44f9528a1
[ssl] use proper names for TLS_*_method
...
only use deprecated SSLv23_*method on old versions of SSL
2023-10-10 19:35:27 +02:00
akallabeth
89429885a0
[cmake] make generated pkg-config files relocatable
...
* new CMake option PKG_CONFIG_RELOCATABLE (default ON) allows generating
traditional or relocatable pc files
2023-10-10 19:35:27 +02:00
akallabeth
32d131d9ef
[cmake] add missing CMake files for winpr-tools
2023-10-10 19:35:27 +02:00
akallabeth
86acc8d31a
[warnings] fixed reserved-identifer warnings
2023-09-25 08:39:01 +02:00
akallabeth
2e7f387783
open 3.0.0-dev5 cycle
2023-09-21 13:57:48 +02:00
akallabeth
1f284d3af8
update version to 3.0.0-beta4
2023-09-21 13:57:48 +02:00
akallabeth
45c1bc8748
[tests] disable TestSynchMultipleThreads
...
the test is buggy as the native implementation on windows often
segfaults.
2023-09-21 10:38:55 +02:00
akallabeth
184e006ce5
[winpr,cmdline] fix unquoting of value
...
Comma separated lists of form 'a,b,\"b,c,d\"' were not correctly parsed
as the trailing quote was not consumed.
2023-09-21 10:38:30 +02:00
akallabeth
a94e14fb22
[winpr,wlog] fix format string for %fn
2023-09-11 14:20:10 +02:00
akallabeth
ff5f2df3f9
[winpr,synch] allow all handle types
...
GetEventFileFd should return a file descriptor for all types supporting
one, not just events
2023-09-11 14:20:10 +02:00
David Fort
8a39859612
[arm] various improvements
...
This patch moves the ARM configuration before starting the connection process, so
that we can do some provisioning of the FreeRDP settings with the items retrieved
from Azure.
Most notably that allows us to connect directly using RDSTLS security.
2023-09-04 10:24:56 +02:00
Armin Novak
639a36225e
[version] start 3.0.0-dev4 cycle
2023-08-31 12:27:06 +02:00
Armin Novak
59a5726ab3
[version] update to beta3 version
2023-08-31 12:27:06 +02:00
Armin Novak
3ea38175b4
[locale,keyboard] fix keyboard mapping on apple
2023-08-31 11:39:22 +02:00
Armin Novak
fe2595eaeb
[winpr,crt] fix unicode conversion
...
fix erroneous cast to wrong pointer type
2023-08-31 11:39:22 +02:00
akallabeth
4e824b243f
[winpr] add WINPR_ATTR_FORMAT_ARG
...
this macro declares the function argument (pos,arg) to be a printf
style format string and enables compiler checks for that.
2023-08-25 12:56:36 +02:00
akallabeth
786279fd9f
[winpr,api] add C23 [[deprecated]] support
...
* Support C23 attributes for WINPR_DEPRECATED* macros
* Support C23 attributes for WINPR_NORETURN macro
2023-08-25 12:56:36 +02:00
akallabeth
9cee9b3c08
[c standard] use WINPR_FALLTHROUGH
...
use the macro to silence intentional switch fallthrough locations
2023-08-25 12:56:36 +02:00
akallabeth
4a82980983
[winpr] fix compiler warnings
2023-08-25 12:56:36 +02:00
akallabeth
76609529e0
[winpr,file] fix FindFirstFile issues with android
...
Fixes #9277 : On android parent directories are not accessible, so if
opendir fails and the pattern is just the directory name without any
pattern (e.g. stat tells the full path is a directory) directly open it
and set the pattern to '*'
2023-08-24 13:17:57 +02:00
David VERON
d1dcae5b4a
Refactor TestUnicodeConversion
...
* added testcases when buffers reprensented empty string
* corrected the code to behave as the doc says
* added tests for the alloc versions
2023-08-24 07:41:27 +02:00
akallabeth
3e744e13c3
[smartcard] clean up function table wrapper
2023-08-23 12:26:27 +02:00
Marc-André Moreau
30c31d64e8
WinSCard dynamic API loading with /winscard-module cli argument
2023-08-23 12:26:27 +02:00
Marc-André Moreau
98b4ff559b
fix issue with using find_library for Windows system libraries
2023-08-23 09:46:53 +02:00
akallabeth
ad27cef021
[winpr,wtypes] add WINPR_RESTRICT macro
2023-08-22 15:39:00 +02:00
Armin Novak
dd9757d686
[server] add exerimental and unmaintained warnings
2023-08-21 15:42:10 +02:00
Kimon Hoffmann
8ec4d20616
[cmake] Locate PkgConfig module with find_package() instead of include(FindPkgConfig)
...
This is the contemporary way of including find modules and including the
find module this way avoids cmake errors in conjunction with
find_package_handle_standard_args().
Signed-off-by: Kimon Hoffmann <Kimon.Hoffmann@lawo.com>
2023-08-21 12:43:56 +02:00
David Fort
2252d53001
[winpr] cipher enable setting the padding option
...
It happens that with some ciphers the standard behaviour that disables padding
is not desired. This patch adds a function to enable padding.
2023-08-16 10:19:15 +02:00
David Fort
56324906a2
TestThreadExitThread: fix messages and wait timeout for the windows CI
...
Looks like for the windows x86_86 CI host 100ms is too small for a thread to terminate
so let's wait for longer and decrease the number of loops.
2023-08-12 09:24:08 -04:00
akallabeth
fee2b10ba1
change version to 3.0.0-dev3
2023-08-04 12:59:11 +02:00
Armin Novak
d3e428c51f
change version to 3.0.0-beta2
2023-08-04 12:59:11 +02:00
akallabeth
b12e2ee469
[cmake] do not require NTDLL
2023-08-04 12:59:11 +02:00
akallabeth
793d80f2c4
[cmake] update ci defaults
2023-08-04 12:59:11 +02:00
akallabeth
8470b6ea26
[cmake] set default build type
...
set with CACHE STRING FORCE to properly be picked up by configuration
tools
2023-08-04 12:59:11 +02:00
akallabeth
76d23885d4
[cmake] add common options to subprojects
2023-08-04 12:59:11 +02:00
David VERON
fb406feb33
libwinpr/crt/unicode: unicode conversion functions with allocation
...
Unicode conversion functions with allocation returned NULL when the input was
a string of len = 0. Now those functions allocate buffers with the
corresponding empty string that the caller has to free.
2023-08-03 17:23:52 +02:00
Richard Markiewicz
cd06e7179a
[winpr,crypto] Fix compilation with mbedTLS
2023-08-02 10:11:35 +02:00
David Fort
a16c4efb98
mingw: fix build under Ubuntu 22.04
2023-08-02 09:37:32 +02:00
Armin Novak
b97a5448d2
update timezones
2023-08-01 17:18:22 +02:00
akallabeth
eb67f41a50
[cmake] use find_library for windows libs
2023-08-01 13:32:35 +02:00
akallabeth
2b84309b10
[mingw] fix build issues on debian 12
2023-08-01 13:32:35 +02:00
Kai Pastor
5ecc011c13
Export interface include directories
2023-08-01 11:12:46 +02:00
Armin Novak
6bdd36c83d
[winpr,test] fix testsynchmultiplethreads
2023-08-01 07:44:48 +02:00
Armin Novak
ef5c0e78ab
[build] use define WINPR_FALLTHROUGH
...
with c17 compatible compilers annotate with [[fallthrough]]
2023-07-31 23:46:53 +02:00
Armin Novak
bd79d8f100
[winpr,rdtk] use png only if supported by winpr
...
rdtk compiles in bitmaps of fonts. if png format is supported by winpr,
prefer the png images, otherwise use bmp
2023-07-31 20:18:48 +02:00
Armin Novak
97cb8d9e57
[winpr,collections] simplify c++ casts
2023-07-31 10:12:23 +02:00
Armin Novak
35915d3e22
[winpr] fix various warnings
2023-07-31 08:32:43 +02:00
Armin Novak
d4b9812db2
[winpr,sync] define symbols unsigned long
2023-07-31 08:32:43 +02:00
Armin Novak
c9852a870b
[winpr] use C++ compatible casts
...
use a macro for casts to avoid C++ warnings
2023-07-31 08:32:43 +02:00
Armin Novak
6683fb1b22
[winpr,nt] use C++ compatible cast
2023-07-31 08:32:43 +02:00
Armin Novak
2378551105
[winpr,stream] c++ compatible casts
...
use a macro to cast C or C++ compatible to avoid warnings
2023-07-31 08:32:43 +02:00
ehdgks0627
d04ba8d6ef
Correct typos and formatting errors in format strings
...
In several files, fixed typos in format strings that were causing unexpected output and formatting issues.
2023-07-28 15:34:46 +02:00
Armin Novak
b46a4ce750
[winpr,string] remove duplicate string functions
...
prefer standard C functions over window specific ones
2023-07-28 13:42:12 +02:00
Armin Novak
4f7a3762ae
[winpr] fix cast warnings
2023-07-28 13:42:12 +02:00
Armin Novak
61625f1a2a
[winpr,utils] fix cast warnings
2023-07-28 13:42:12 +02:00
Armin Novak
f2aa469700
[winpr,collections] fix cast warnings
2023-07-28 13:42:12 +02:00
Armin Novak
20653aee1d
[winpr,ini] fix cast warnings
2023-07-28 13:42:12 +02:00
Armin Novak
32b9eeb3c0
[winpr,sysinfo] deprecage GetVersionInfoEx
...
the function is deprecated under windows, so deprecate it in WinPR too
and remove/replace usage
2023-07-28 13:42:12 +02:00
Armin Novak
96112b28ab
[winpr,stream] replace defines with inline functions
2023-07-28 13:13:50 +02:00
Armin Novak
33653756f2
[winpr,sspi] fixed const correctness of arguments
2023-07-27 21:05:43 +02:00
Armin Novak
e61880d077
[standard] replace __FUNCTION__ with __func__
2023-07-27 20:02:43 +02:00
Armin Novak
605b6b6233
[cmake] build using external lodepng
2023-07-26 20:19:46 +02:00
Armin Novak
70ddb6518a
[PathCchAppend] fix missing return checks
2023-07-26 10:57:42 +02:00
Armin Novak
3847035b8e
[winpr,clipboard] fix clipboard file listing
2023-07-26 10:57:42 +02:00
Armin Novak
14d5cbeacb
[winpr,file] fix issues with FindFirstFile
2023-07-26 10:57:42 +02:00
Armin Novak
d660f017b2
[winpr,path] add recursive directory delete
2023-07-26 10:57:42 +02:00
Armin Novak
62b6c98393
[winpr,file] do not assume order for directory listings
2023-07-24 11:05:13 +02:00
akallabeth
5de7887d93
start new development cycle after 3.0.0-beta1 release
2023-07-21 16:04:49 +02:00
Armin Novak
f08d59ca5f
update version to 3.0.0-beta1
2023-07-21 16:04:35 +02:00
akallabeth
ee078cdda4
[warnings] fix format string warnings
2023-07-20 14:20:28 +02:00
Armin Novak
c26f356225
[winpr,ncrypt] do not link pkcs11 for dynamic detection
2023-07-17 14:04:03 +02:00
akallabeth
2521d151e5
[winpr,wlog] added %{ %} formatter
...
* New formatter %{xxx%} which conditionally prints xxx if the context is
not NULL
2023-07-06 15:51:56 +02:00
akallabeth
1f3f3682cc
[build] fix conversion warnings
2023-07-05 08:46:00 +02:00
akallabeth
c7f7f38367
[ci] deactivate proxy modules on windows
...
current builder is too old for c++11
2023-07-05 08:46:00 +02:00
Martin Fleisz
622a2a8df0
misc: More int to BOOL conversion fixes
...
This is a follow up to #9129 .
This PR fixes some problematic `int` to `BOOL` conversions that might
cause overflows when checking for bit flags.
2023-07-04 09:45:20 +02:00
akallabeth
b7ff113780
[winpr,crt] fix missing include
2023-06-29 18:34:51 +02:00
Armin Novak
40ecb1df25
[winpr,ini] documentation and parameter to size_t
...
* document the IniFile_* fucntions
* Use size_t for size parameters
2023-06-29 14:46:41 +02:00
Armin Novak
21ea8556ce
[winpr,ini] remove FILE* from struct
...
When reading files the FILE* is closed immediately, so this was just
confusing
2023-06-29 14:46:41 +02:00
Armin Novak
58087e544f
[winpr,ini] unify buffer allocation
2023-06-29 14:46:41 +02:00
Armin Novak
37e5e2223e
[winpr,ini] unify filename setting
2023-06-29 14:46:41 +02:00
Armin Novak
eb6230a563
[winpr,ini] assert arguments
2023-06-29 14:46:41 +02:00
Armin Novak
c717380020
[winpr,ini] unify reallocation of ini sections and keys
2023-06-29 14:46:41 +02:00
akallabeth
0d3b2dd3c3
[tests] fixed format strings
2023-06-29 14:30:09 +02:00
akallabeth
d0456914e5
[winpr,wlog] extend wLog to allow logging custom data
...
A logger allocated with WLog_Get now can have a customized context by
setting it with WLog_SetContext. Along with the newly introduced format
specifier %ctx an additional field is printed for the context.
2023-06-29 14:30:09 +02:00
Armin Novak
646a78d19c
[cmake] do proper pkcs11 detection
...
do not rely on find_feature but use a CMake option and find_package
2023-06-28 10:02:15 +02:00
akallabeth
3f78b3c379
[build] fix unused compiler warnings
2023-06-28 09:45:09 +02:00
akallabeth
3554dd1c64
[winpr,crypto] use void* for buffer arguments
2023-06-28 09:45:09 +02:00
akallabeth
0c15f72169
[winpr,collections] fixes for ListDictionary
...
* Make ListDictionary_Add and ListDictionary_SetItemValue arguments
const
* Allow ListDictionary_Add to store NULL values
2023-06-28 08:19:20 +02:00
Armin Novak
b8a0091c92
[winpr,utils] add IniFile_Clone
2023-06-27 17:36:57 +02:00
akallabeth
df3f274dd0
[test,listdictionary] fix format string
2023-06-27 15:05:43 +02:00
akallabeth
51ed074d1d
[winpr,collections] add doxygen for some types
...
* wLinkedList
* wObject
* wQueue
* wListDictionary
2023-06-27 15:05:43 +02:00
akallabeth
e1ae901858
[winpr,collections] fix ListDictionary_Add
...
create copies of key and value if the function pointer are set
2023-06-27 15:05:43 +02:00
akallabeth
54847499e9
[winpr,collections] fix ListDictionary New/Free handling
2023-06-27 15:05:43 +02:00
akallabeth
f27076ab82
[winpr,collections] ListDictionary
2023-06-27 15:05:43 +02:00
akallabeth
0669cfe483
[winpr,collections] CountdownEvent
2023-06-27 15:05:43 +02:00
akallabeth
1fd0e15810
[winpr,collections] remove unused ReferenceTable
2023-06-27 15:05:43 +02:00
akallabeth
8e319c4fa7
[winpr,collections] LinkedList_Count
2023-06-27 15:05:43 +02:00
akallabeth
63d4da2d0d
[winpr,collections] ListDictionary_GetKeys
2023-06-27 15:05:43 +02:00
akallabeth
ac39e8aac2
[winpr,collections] ListDictionary_Count
2023-06-27 15:05:43 +02:00
Hugues LEFEBVRE
b67afecf0f
CredSSP with early user auth (nla_ext) support
2023-06-26 11:53:46 +02:00
akallabeth
64486828bb
[winpr,crt] fix winpr_aligned_offset_recalloc
...
the copied data was taken from the wrong offset
2023-06-12 16:32:23 +02:00
akallabeth
a64dd36073
[build] fixed const warnings
2023-06-12 16:32:23 +02:00
Armin Novak
979610b1fd
[winpr,stream] assert valid pointer
2023-06-08 08:13:16 +02:00
Armin Novak
970f0c54e8
[stream] use const correct Stream_Pointer access
2023-06-08 08:09:33 +02:00
Armin Novak
2de7399e52
[winpr,stream] change Stream_Pointer return to void*
...
Eliminates possible type warnings as we return a void*
If a specific type is desired, use the Stream_PointerAs macro.
2023-06-08 08:09:33 +02:00
Armin Novak
81e95e51ca
[winpr,ncrypt] log problems during cert enumeration
2023-06-07 23:05:54 +02:00
Armin Novak
a4c6b36a19
[build] fix memory sanitizer stack frame warnings
2023-06-07 09:14:45 +02:00