Commit Graph

3055 Commits

Author SHA1 Message Date
akallabeth
70e9f4c5ea
Create timezone-update.yml 2024-07-23 14:26:23 +02:00
akallabeth
f22974a95a
[winpr,utils] include current source dir 2024-07-23 09:15:00 +02:00
akallabeth
776083234b
[warnings] fix unused-but-set-variable 2024-07-23 09:14:19 +02:00
akallabeth
0b0eae2adc
[winpr,sspi] fix wchar to byte endianess 2024-07-22 13:42:27 +02:00
akallabeth
4b6d614f19
Merge pull request #10394 from akallabeth/kbd_layout_from_file
Kbd layout from file
2024-07-22 11:07:57 +02:00
akallabeth
8998f6897a
[winpr,sspi] fix PTH string checks 2024-07-22 09:08:33 +02:00
akallabeth
e34b8b5205
[winpr,utils] add WINPR_JSON_AddItemToArray 2024-07-19 15:52:20 +02:00
Armin Novak
6133ee6da0
[winpr,timezone] update from tzextract
* Update existing data
* Add new file TimeZoneNameMap.json
* Add CMake install target for TimeZoneNameMap.json
2024-07-19 14:02:12 +02:00
akallabeth
f8405d5a4a
[winpr,timezone] add JSON generation to tzextract 2024-07-19 14:02:06 +02:00
akallabeth
bb360fbbdc
[winpr,timezone] Add new options to load from file
* WITH_TIMEZONE_FROM_FILE allows loading timezone definitions from a JSON
  file. (Requires WITH_WINPR_JSON, default OFF)
* WITH_TIMEZONE_COMPILED allows loading timezone definitions from an
  compiled in array. (Default ON)

Both of these options can be combined in any order. The data loaded from
file takes preference over compiled in values.
2024-07-19 13:23:03 +02:00
akallabeth
962a996dd9
[winpr,timezone] encapsulate timezonemap 2024-07-19 11:39:49 +02:00
akallabeth
6c682c8418
[client,common] add option to set timezone
* /timezone now allows setting the timezone used from a windows timezone
  key name
* /list:timezones now lists all available windows timezone key names
2024-07-19 11:39:46 +02:00
akallabeth
9eb484b21b
[winpr,timezone] implement EnumDynamicTimeZoneInformation 2024-07-19 11:39:41 +02:00
akallabeth
4099bd4e45
[warnings] integer casts/checks 2024-07-02 12:38:00 +02:00
akallabeth
b3f268ef86
[winpr,ncrypt] improve pkcs11 logging 2024-07-01 10:25:28 +02:00
akallabeth
6e1e35590e
[winpr,timezone] reduce log verbosity 2024-06-27 09:48:34 +02:00
akallabeth
3c4c827358
[winpr,timezone] Fix GetDynamicTimeZoneInformation
* Improve logging, use single function to dump data.
* Use GetDynamicTimeZoneInformation as man getter,
  GetTimeZoneInformation only retrieves a subset.
2024-06-26 20:59:43 +02:00
Armin Novak
85078bf8c8
[winpr,timezone] fix transition date detection 2024-06-24 14:45:09 +02:00
akallabeth
0431b6c116
[winpr,timezone] fix windows timezone mappings
* WINDOWS_TZID_ENTRY struct members were inverted
* Entries with multiple IANA entries (separated by space) are now each
  checked for a match
2024-06-24 11:30:25 +02:00
akallabeth
fe2053c26d
[winpr,sysinfo] fix linux arm cpu feature detect 2024-06-18 08:48:14 +02:00
akallabeth
bcd663b7d9
Merge pull request #10269 from akallabeth/image_copy_sse
Image copy sse
2024-06-12 16:45:57 +02:00
oleg0421
34aed4e571 Fix errno undeclared error in json.c 2024-06-11 11:46:02 -07:00
akallabeth
14ba7fb601 [winpr,sysinfo] update IsProcessorFeaturePresent
Update instruction set detection for newer stuff (SSE4, AVC2, ...)
2024-06-11 09:26:52 +02:00
akallabeth
736774dd22
[winpr,pool] fix winpr_SetThreadpoolThreadMaximum
unlock the arraylist, don´t lock it twice.
2024-06-07 09:20:58 +02:00
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
a69dd9ad36
[sspi,krb] check for empty kdcUrl 2024-06-03 12:28:49 +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