Armin Novak
36c7c0320b
Fixed review comments
2022-07-07 17:31:49 +02:00
fifthdegree
362ae93a64
spnego: some cleanups and fixes
2022-07-07 17:31:49 +02:00
David Fort
8b5df3fa92
spnego: cleanup the guess of the input token
2022-07-07 17:31:49 +02:00
David Fort
b128ec4fba
spnego: add various check and fixes
2022-07-07 17:31:49 +02:00
David Fort
6c834eaa15
winpr: adjust negotiate_GetMechByOID function
2022-07-07 17:31:49 +02:00
fifthdegree
2a3c92b4cc
spnego: use winpr asn.1 library
2022-07-07 17:31:49 +02:00
Pascal Nowack
43b609cd6c
winpr/clipboard: Allow overriding ValidFileNameComponent call
...
When using the wClipboard API, the connected peer might not be on the
Windows platform, where further filename restriction exists.
As a result, it is currently not possible to use the wClipboard API,
when intending to allow filenames, containing characters like ':'.
So, add a callback to the wClipboardDelegate, which is set to the
ValidFileNameComponent call by default.
This callback can be overridden by the API user, when it is known, that
there is no need to impose very strict filename restrictions.
2022-07-07 07:45:26 +00:00
David Fort
168117e85b
winpr: fix encoding of octetString containers and add required functions for SPNego
2022-07-05 15:04:01 +02:00
akallabeth
05b339b0b1
Added strndup replacement
2022-07-04 14:31:08 +02:00
akallabeth
51f4c374c4
Clear OpenSSL error queue before BIO_read/BIO_write
2022-07-02 16:32:50 +02:00
David Fort
bddb71230e
winpr asn1: fixes and more features
...
This patches adds support for octet string containers that are used by SPNego
(a subfield is contained in an octet string record).
It also adds a performance test to test reallocations in asn1 encoder.
It fixes reallocation problems for both chunks and containers.
2022-07-01 09:43:01 +02:00
David Fort
cbda255dcd
winpr: add some ASN1 parsing functions
...
This patch implements ASN1 parsing in WinPR, as we need it in SSPI packages.
2022-07-01 07:51:31 +02:00
akallabeth
5d1d3d6582
Fixed #8022 : leaks in kerberos code
2022-06-30 23:00:48 +02:00
akallabeth
39bd78d2fb
Fixed missing includes
2022-06-29 18:10:33 +02:00
akallabeth
7c85949f1d
Fixed unused variable warnings
2022-06-29 18:10:33 +02:00
akallabeth
99cda9249f
Fixed uninitialized warnings
2022-06-29 18:10:33 +02:00
akallabeth
684ada9c0e
Fixed uninitialized warnings
2022-06-29 18:10:33 +02:00
Adrian Perez de Castro
81e8e28062
Fix building with LibreSSL 2.7.0 or newer
...
With LibreSSL 2.7.0 (or newer versions) some more structs have made
opaque, which requires a few changes:
- BIO_meth_new() and related functions are now defined by LibreSSL, the
versions from opensslcompat.{h,c} does not need to be used anymore.
- HMAC_CTX is now opaque, HMAC_CTX_new(), EVP_MD_CTX_new, and related
functions should be used instead in winpr's hash.c.
2022-06-27 12:42:06 +02:00
akallabeth
9fee695ed0
Assert stream pool if duplicate entry is found
2022-06-27 11:21:24 +02:00
akallabeth
488a0d1edd
Fixed streampool release
2022-06-27 11:21:24 +02:00
akallabeth
25c120d25d
Fixed type mismatches and memory leaks
2022-06-27 11:21:24 +02:00
akallabeth
bc8b4ade1c
reformatted
2022-06-23 08:48:39 +02:00
akallabeth
ec8550e87f
Fix unwind backtrace warnings
2022-06-23 07:45:55 +02:00
fifthdegree
56d10c2d27
kerberos: don't get a tgt ticket for inbound creds
2022-06-21 10:27:17 +02:00
fifthdegree
8ac977e671
make sure existing ccache credentials are not expired
2022-06-21 10:27:17 +02:00
David Fort
a31574d359
kerberos: correctly detect missing credentials even with an empty cache
2022-06-21 10:27:17 +02:00
David Fort
90a2b9a10c
Various fixes in negotiate.c
2022-06-21 10:27:17 +02:00
fifthdegree
b5ba6d135c
retry on all errors from acquire_creds
2022-06-21 10:27:17 +02:00
fifthdegree
c51348a33b
fixes
2022-06-21 10:27:17 +02:00
fifthdegree
e66b99f8dc
deprecate old hash callback field
2022-06-21 10:27:17 +02:00
fifthdegree
6d3aa52496
set SAM file and hash callback on credential rather than context
2022-06-21 10:27:17 +02:00
fifthdegree
eeece1a027
server-side kerberos (and some fixes)
2022-06-21 10:27:17 +02:00
fifthdegree
8d9f990124
some more tweaks
2022-06-21 10:27:17 +02:00
fifthdegree
441fa01acb
adjust ntlm unit test
2022-06-21 10:27:17 +02:00
fifthdegree
a359124339
some small fixes and changes
2022-06-21 10:27:17 +02:00
fifthdegree
1c012b09b8
implement proper SPNEGO negotiation
2022-06-21 10:27:17 +02:00
akallabeth
f25261e271
Unifiy string append functions
2022-06-17 08:41:46 +02:00
akallabeth
31708d8b20
Disable LTO on apple devices
2022-06-03 08:51:40 +02:00
akallabeth
3d65e5a138
Fix return of getlogin()
2022-06-02 13:57:09 +02:00
Marc-André Moreau
227aa6a55f
Fix WinPR SSPI unit tests to always use SSPI function table
2022-06-01 15:16:12 +02:00
Marc-André Moreau
1d5c0be5ec
Add settings to load a custom SSPI shared library module
2022-06-01 15:16:12 +02:00
David Fort
0a404d5728
fix a warning seen on the MacOS CI
2022-05-30 14:05:41 +02:00
akallabeth
65938708c0
Fixed WITH_PKCS11 option
2022-05-12 11:36:01 +02:00
David Fort
77413f49b2
winpr: rework alignment functions
...
_align_XXX functions aren't widely available depending on the C runtime. That causes
problems with mingw where we can easily have some runtime mixes (which lead to mysterious
segfaults most of the time). This patch introduce winpr_aligned_XXX functions that will
either use the function available, or use an emulation layer.
2022-05-12 11:36:01 +02:00
David Fort
82092f6752
smartcard: add verbose output during listing
2022-05-12 11:36:01 +02:00
akallabeth
ca9247ddd9
Do not compile ncrypt_pkcs11 if CMake option is not set
2022-05-06 13:39:26 +02:00
David Fort
4ffd3e84b9
smartcard: take in account pkcs11-module in smartcard listing and print pkcs11 errors
2022-05-06 13:39:26 +02:00
David Fort
a612ca4ba2
winpr: fix unitary test when CreateProcess is CreateProcessW
...
As the second argument of CreateProcessW is modified to split with spaces and so
this can not be a const arg.
2022-05-05 13:11:18 +02:00
Armin Novak
03ed367fb9
Fixed broken USE_UNWIND check
2022-05-05 13:05:33 +02:00
Armin Novak
400fe6f796
Fixed argument mismatch
2022-05-03 11:48:20 +02:00