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
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
51ed074d1d
[winpr,collections] add doxygen for some types
...
* wLinkedList
* wObject
* wQueue
* wListDictionary
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
Armin Novak
979610b1fd
[winpr,stream] assert valid pointer
2023-06-08 08:13:16 +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
akallabeth
df76b59da7
[warnings] fix -Wshadow
2023-05-24 08:24:32 +02:00
fifthdegree
449b96adb2
Use popup browser for AAD auth in SDL client
...
Optionally build the SDL client with Qt WebEngine to create a popup
browser for authentication to AAD. Also change the URL output on the
command line to use the "nativeclient" redirect for easier copy/pasting
of the authorization code.
2023-05-23 06:04:55 +02:00
fifthdegree
ba7fdcb5f0
Move alloc_sprintf into the winpr string api
2023-05-23 06:04:55 +02:00
Armin Novak
0c7330720f
[winpr,crypto] add internal rc4 replacement
...
RDP relies on RC4 for some operations, so we need these to successfully
log on to windows machines. This is a replacement for use with SSL
libraries that have already deprecated these.
2023-05-17 14:51:58 +02:00
Armin Novak
10f8a7b4e4
[winpr,print] use void* as arguments for dump functions
...
to avoid casting or type mismatch warnings use void* as pointer to data
for dump functions
2023-05-17 14:19:31 +02:00
akallabeth
4a006322af
[winpr,clipboard] fix url unescape for file uri
2023-05-12 13:57:56 +02:00
akallabeth
d2cf953f24
[winpr,input] properly define keyboard types
...
* use an enum to define the different WINPR_KEYBOARD_TYPE*
* use the enum as argument for the functions instead of DWORD
2023-05-12 09:52:01 +02:00
akallabeth
564da71f11
[winpr,crypto] add digest sign functions
2023-05-10 09:59:10 +02:00
Alexandru Bagu
a231c09fff
fixes for llvm-mingw build
2023-05-04 12:56:16 +02:00
Martin Fleisz
3cb55a87e3
winpr: Add support for AVX2/AVX512F feature detection
2023-05-02 12:06:47 +02:00
fifthdegree
b1c4cb493f
Set KDC URL in a way compatible with Windows
2023-04-27 16:31:30 +02:00
akallabeth
c0dc193a39
[winpr,input] use enum for keyboard types
...
* move type definition to WinPR as used there too.
* supported keyboard types are defined in
[MS-RDPBCGR] 2.2.1.3.2 Client Core Data (TS_UD_CS_CORE)]
use a enum instead of magic numbers to make code more readable.
2023-04-21 12:31:51 +02:00
Pascal Nowack
bb967d1533
winpr/input: Add actual evdev keyboard handling
...
WinPR provides APIs to convert between keycodes between virtual
keycodes.
These keycodes can currently be evdev keycodes or Apple keycodes.
The evdev handling, however, handles XKB keycodes and not evdev ones.
The main difference between these is that XKB keycodes are shifted by
the value 8, compared to evdev keycodes.
In order to fix this situation, rename the evdev keycodes to XKB ones,
and introduce additionally a new keycode evdev, including its handling
for this keycode type.
2023-04-21 12:31:51 +02:00
akallabeth
4c0b169774
[winpr,wtypes] fix BOOL definition for APPLE
...
* Add TargetConditionals.h include to ensure the symbols are defined
* Check for symbol existence and value != 0
2023-04-14 16:08:19 +02:00
Armin Novak
54bd41e99c
[winpr,collections] fix c++ warings for PubSub
2023-04-14 08:44:14 +02:00
Armin Novak
639ac20ed9
[winpr,stream] fix c++ warings for Stream_Write_UINT8
2023-04-14 08:44:14 +02:00
Armin Novak
8989386d01
[winpr,stream] fix c++ warings for Stream_Write_UINT64
2023-04-14 08:44:14 +02:00
Armin Novak
a13701f69c
[winpr,assert] eliminate c++ warnings
...
Eliminate cast warnings when used in C++ code
2023-04-14 08:44:14 +02:00
Armin Novak
4408521421
[winpr,sspi] match SEC_WINNT_AUTH_IDENTITY integer
...
windows defines them with ULONG which does not match UINT32, so keep
these types proper
2023-04-11 11:37:09 +02:00
Armin Novak
13c025e04c
[winpr,sspi] remove sspi_SetAuthIdentityWithUnicodePassword
...
the function is useless as we always use the SetAuthIdentityW API now
2023-04-11 11:37:09 +02:00
Armin Novak
947bc7fe04
[winpr] added Win32ErrorCode2Tag
2023-04-05 10:02:27 +02:00
akallabeth
cdf1047bef
[crt] add windows definition for winpr_aligned_calloc
2023-03-28 11:34:52 +02:00
akallabeth
37aaa7802a
[winpr,crt] added winpr_aligned_calloc
2023-03-28 11:34:52 +02:00
akallabeth
e8fbac14cc
[winpr,shell] log when a known path is NULL
...
* Add GetKnownPathIdString to get a string representation of the known
path ID requested
* Added a log message if a requested path is NULL
2023-03-24 08:42:40 +01:00
akallabeth
7fe70c5685
[winpr,types] define SSIZE_T to ssize_t if available
2023-03-15 08:22:23 +01:00
Armin Novak
49f44303b1
[server,shadow] clean up certificate generation
2023-03-08 13:07:20 +01:00
Armin Novak
f4acc88c58
[winpr,clipboard] add getter for clipboard id string
2023-02-23 20:28:15 +01:00
akallabeth
f2b4fa9acc
[winpr,sspi] fix const correctness of function argument
...
sspi_SetAuthIdentityWithUnicodePassword arguments should be const to
avoid compiler warnings if the variable is also const
2023-02-01 09:51:54 +01:00
akallabeth
de40b43037
[winpr,stream] modify logging stream length checks
...
* Split length argument to nmemb and size for all Stream_CheckAndLogRequiredLength* functions
* Add new macros to allow setting nmemb and size arguments
2023-01-25 14:27:32 +01:00
akallabeth
74530a7931
[format strings] ensure __LINE__ is of type size_t
...
__LINE__ is not particularily well defined (most fall back to int).
We want to ensure that all the uses in a format string match the format
specifier, so do an explicit cast
2023-01-25 14:27:32 +01:00
akallabeth
b6648288e4
[winpr,stream] add functions to check and log capacity
...
Add functions (and macros) to provide a method to check the remaining
capacity of a stream and log failures
* Stream_CheckAndLogRequiredCapacityWLog
* Stream_CheckAndLogRequiredCapacityWLogEx
* Stream_CheckAndLogRequiredCapacityWLogExVa
2023-01-25 14:27:32 +01:00
Armin Novak
f62c658e17
[winpr] Make Stream_SafeSeek log a failure
2023-01-24 10:16:55 +01:00
akallabeth
92d3e3c64a
[winpr] use WINPR_ prefix for conditional includes
2023-01-10 17:38:00 +01:00
David Fort
9e3bc8e3af
wtsapi: add new kind of query to retrieve the open status
2022-12-27 11:02:29 +01:00
Armin Novak
b917dbad32
[winpr,stream] add length check helper
2022-12-22 15:09:03 +01:00
akallabeth
784becd946
[winpr,image] add winpr_bitmap_write_ex
...
Added a helper function writing a bitmap from an image that has a stride
that is not width * <bytes per pixel>
2022-12-16 11:03:13 +01:00