akallabeth
05edcbc357
[cmake] fix version from git tag
...
only consider tags that conform to the format 'somestring1.2.3' as
valid tags
2023-05-02 09:34:07 +02:00
akallabeth
be74ce00a7
[winpr,tools] add openssl3 support
2023-04-28 08:33:06 +02:00
Armin Novak
f8ac8f1773
[winpr,schannel] add compile option WITH_DEBUG_SCHANNEL
2023-04-28 08:33:06 +02:00
Armin Novak
55a8695cfe
[winpr,crypto] add openssl 3 support
...
update hashing functions for openssl 3
2023-04-28 08:33:06 +02:00
akallabeth
516668d02b
[fclose] ensure no invalid pointers are passed.
...
fclose has undefined behaviour for NULL pointers, so check for these.
2023-04-28 07:39:35 +02:00
akallabeth
09aa4e63a9
[winpr,utils] fix COMMAND_LINE_VALUE_PRESENT
...
the flag was set unconditionally, only set it if there actually is a
value present
2023-04-28 07:39:35 +02:00
fifthdegree
6abd9165e6
Only accept hostname for kdc-url
...
For compatibility with windows
2023-04-27 16:31:30 +02:00
fifthdegree
9368317a9f
Plug some leaks in krb5glue_mit.c
2023-04-27 16:31:30 +02:00
fifthdegree
b1c4cb493f
Set KDC URL in a way compatible with Windows
2023-04-27 16:31:30 +02:00
fifthdegree
201b743f20
Set pkinit_kdc_hostname when known
...
Since Windows doesn't use id-pkinit-san in its certificates, it is
necessary to manually configure which hosts are valid KDCs. In the case
where a kdcUrl (or hostname) is provided to us, we can do that
configuration ourselves.
2023-04-27 16:31:30 +02:00
Armin Novak
e0aec72d71
[pkg-config] unify exec_prefix
2023-04-24 22:01:15 +02:00
Armin Novak
f674b209ff
[pkg-config] unify libdir
2023-04-24 22:01:15 +02:00
Bernhard Miklautz
d1069b3bc1
new: use prefix in pkg-config files for libdir
2023-04-24 11:19:01 +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
akallabeth
1318b813d6
[winpr,input] fix apple keyboard mapping
...
GetVirtualKeyCodeFromKeycode and GetVirtualKeyCodeFromKeycode used
an invalid index offset. this commit corrects that, but is API breaking.
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
Marc-André Moreau
32264b90cc
add WITH_UNICODE_BUILTIN option to use built-in UTF conversion functions
2023-04-18 16:51:08 -04: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
Rubycat
207d886a90
Unique kerberos ccaches for parallel connections.
...
The "MEMORY" ccache is shared in a process.
If a client uses it to make parallel connections,
the same ccache may be used for several clients with distinct
credentials.
To prevent such sharing we create a unique, dedicated ccache when
necessary with krb5_cc_new_unique.
We should destroy the ccaches we created, to avoid leaks.
The struct KRB_CREDENTIALS is extended to express the ccache ownership.
2023-04-07 11:21:12 +02:00
Rubycat
cec88e53bd
don't log an error when running GetCurrentThread from non winpr thread
...
Since 7c4a774e4e
this can legitimately happen in WaitForMultipleObjectsEx and is not
actually an error.
2023-04-07 11:03:56 +02:00
akallabeth
efcacda24c
[winpr,sspi] do not abort on empty password
...
sspi_SetAuthIdentityA might be called with empty passwords, do not abort
under these conditions.
2023-04-06 12:11:46 +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
2f17622f65
[cmake] link PUBLIC for static builds
2023-03-16 10:58:01 +01:00
akallabeth
69b4898b73
[winpr,clipboard] fix wrong return check
2023-03-15 08:22:23 +01:00
akallabeth
7fe70c5685
[winpr,types] define SSIZE_T to ssize_t if available
2023-03-15 08:22:23 +01:00
akallabeth
41cb69b135
[winpr,stream] fix Stream_Read_UTF16_String
...
Fix wrong arguments for stream length check
2023-03-09 11:17:37 +01:00
Armin Novak
49f44303b1
[server,shadow] clean up certificate generation
2023-03-08 13:07:20 +01:00
Armin Novak
3d8cb485f4
[warnings] Fixed strict-prototypes warnings
2023-03-06 10:04:59 +01:00
Armin Novak
9a7432d23c
[winpr,stream] log Stream_Read_UTF16_String failures
2023-03-06 08:35:24 +01:00
Armin Novak
e129ab749b
fixed parsing of FILEDESCRIPTORW in WinPR
2023-03-05 17:55:28 +01:00
Armin Novak
9fb4465722
[winpr,clipboard] fix text/uri-list parsing
...
abort if an empty string remains
2023-03-05 17:55:28 +01:00
David Fort
7c4a774e4e
winpr: fix WaitForMultipleObjectsEx(alertable) call from non winpr threads
...
When WaitForMultipleObjectsEx is called with the alertable flag set from a non
WinPR thread, we shall not try to treat APC, as for sure there is no APC scheduled,
as previous call that would have scheduled such APC would have failed.
2023-03-05 17:10:37 +01:00
Armin Novak
a726fa613a
[winpr] improve digest failure logging
2023-03-05 17:03:18 +01:00
Armin Novak
6d0a9b075b
[winpr,cynch] WINPR_ASSERT critical section functions
2023-03-01 13:45:13 +01:00
akallabeth
b4e9c8b39f
[build] removed complex libraries
...
* remove obsolete complex libraries helper
* fix static linking
2023-03-01 08:18:34 +01:00
akallabeth
61175a96ea
[winpr,clipboard] fixed mate-copied-files
...
wrong lineending and size fixed
2023-02-28 09:47:54 +01:00
Armin Novak
e1307b90db
[winpr,clipboard] fix length of uri list
...
we overallocate the size, so ensure the result size only contains the
data actually used.
2023-02-28 09:47:54 +01:00
akallabeth
c9e61ff0c5
[cmake] simplify krb5 detection
2023-02-27 11:18:02 +01:00
Armin Novak
acc415442a
[winpr] add macros for library options
...
* compile definitions
* linker options
* cflags
2023-02-27 11:18:02 +01:00
Armin Novak
f0e9797b4c
[build] require CMake >= 3.13
...
required for target_link_options
2023-02-27 11:18:02 +01:00
Armin Novak
f4acc88c58
[winpr,clipboard] add getter for clipboard id string
2023-02-23 20:28:15 +01:00