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
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
Marc-André Moreau
1d5c0be5ec
Add settings to load a custom SSPI shared library module
2022-06-01 15:16:12 +02:00
akallabeth
4c452a96c4
Fixed broken #define guards
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
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
akallabeth
6ce3499e13
Settings getter tests ( #7869 )
...
* Added tests for freerdp_[static|dynamic]_collection_* functions
* Added settings unit test for clone functions
* Fix argument for winpr_RAND and winpr_RAND_pseudo
Using void* eliminates all assumptions of which type the buffer is.
This eliminates unnecessary warnings.
2022-05-02 11:39:38 +02:00
akallabeth
9330559d24
Defined and use _write
2022-04-29 14:27:44 +02:00
akallabeth
00b00ea521
Added unwind.h support
2022-04-29 14:27:44 +02:00
akallabeth
860f44f762
CMake check_include and struct cleanup
...
Move to WinPR what should be there.
2022-04-29 14:27:44 +02:00
akallabeth
d63817640f
Fixed ArrayList_SetItem, return success
2022-04-28 12:37:19 +02:00
akallabeth
2dfc1ddb12
Removed obsolete trio
2022-04-28 10:49:09 +02:00
akallabeth
667b471686
Fixed cast-quality warnings
2022-04-28 09:17:20 +02:00
Armin Novak
2dc98adb62
Updated _wcschr and _wcsrchr to match MSDN spec
2022-04-27 19:42:04 +02:00
Armin Novak
5482607b15
Added Stream_PointerAs
...
This macro allows retrieving the stream pointer casted to correct
type.
2022-04-27 19:42:04 +02:00
Armin Novak
08035be41b
Added missing WINPR_API
2022-04-25 16:06:34 +02:00
akallabeth
74c1a006e9
Fixed format string for Stream_CheckAndLogRequiredLength
...
__LINE__ requires %d and not %PRIuz
2022-04-23 10:10:09 +02:00
akallabeth
73cdcdfe09
Logging and parser fixes ( #7796 )
...
* Fixed remdesk settings pointer
* Fixed sign warnings in display_write_monitor_layout_pdu
* Use freerdp_abort_connect_context and freerdp_shall_disconnect_context
* Added and updates settings
* info assert/dynamic timezone
* mcs assert/log/flags
* Fixed and added assertions for wStream
* Unified stream length checks
* Added new function to check for lenght and log
* Replace all usages with this new function
* Cleaned up PER, added parser logging
* Cleaned up BER, added parser logging
* log messages
* Modified Stream_CheckAndLogRequiredLengthEx
* Allow custom format and options
* Add Stream_CheckAndLogRequiredLengthExVa for prepared va_list
* Improved Stream_CheckAndLogRequiredLength
* Now have log level adjustable
* Added function equivalents for existing logger
* Added a backtrace in case of a failure is detected
* Fixed public API input checks
2022-04-19 14:29:17 +02:00
David Fort
f232562d8b
smartcard: take in account the module path for listing smartcards
...
The PKCS1 module was taken only for the kerberos part.
Also make as exported the winpr_NCryptOpenStorageProviderEx function.
2022-04-15 09:06:09 +02:00
akallabeth
47bd162065
Added function sspi_SetAuthIdentityW
2022-03-28 15:52:59 +02:00
akallabeth
905609381f
Unified sspi_FreeAuthIdentity
2022-03-28 15:52:59 +02:00
Zhengyi Fu
e62aaff319
winpr: add GetFileInformationByHandle
2022-03-24 13:40:31 +01:00
Mike Gabriel
d337ea9c16
winpr/{libwinpr/thread/thread.c,include/winpr/thread.h}: Keep DumpThreadHandles as a symbol even if WITH_DEBUG_THREADS is OFF.
2022-03-08 09:16:10 +01:00
Armin Novak
d1f8c00f7b
Fixed duplicated symbols
2022-03-03 11:26:48 +01:00
Armin Novak
6ed50b4b1d
Refactored WinPR includes
2022-03-03 11:26:48 +01:00
Armin Novak
001c505572
Const corrected function sspi_CopyAuthIdentity
2022-02-24 14:48:46 +01:00
Armin Novak
f4572b082a
Use typedef struct definition for sspi types
2022-02-24 08:52:25 +01:00
David Fort
0435b5a65d
Implement smartcard logon
2022-02-24 08:52:25 +01:00
David Fort
310f2047bf
fix build with mingw 7
2022-02-24 08:52:25 +01:00
Armin Novak
99d63ea89e
Fixed missing static and WINPR_API
2022-02-24 08:52:25 +01:00
David Fort
cb351a099d
Enable smartcard NLA logon
2022-02-24 08:52:25 +01:00
David Fort
a563a6836b
winpr: ncrypt add a property to retrieve the PKCS11 slotId
2022-02-24 08:52:25 +01:00
akallabeth
f568d70d52
Fixed guards
2022-02-18 08:38:28 +01:00
Armin Novak
bf9f1eccc1
Fixed issued with mingw build
2022-02-18 08:38:28 +01:00
Armin Novak
5f8ab14f3f
Cleaned up registry value reading, added warnings
2022-02-15 13:43:36 +00:00
akallabeth
8cc6582044
Unify struct definitions ( #7633 )
...
* Unified enum/struct definitions, fixed include issues
* Fixed mac compilation issues
* Added missing include
* Fixed windows server build warnings
* Fixed VS2010 build issue
* Removed unnecessary library linking
* Fixed ThreadPool WinXP compatibility
* Fixed pr review remarks
2022-02-14 14:59:22 +01:00
Armin Novak
77580466ae
Removed cached wlog pointer
2022-02-01 11:04:32 +00:00
Armin Novak
1c2bf9f031
Made HRESULT_FROM_WIN32 a static inline
2022-02-01 11:04:32 +00:00
Armin Novak
ccaf3c938c
Added Stream_ConstPointer
2022-02-01 10:25:37 +00:00
Armin Novak
10e40147fb
Fixed various const warnings
2022-02-01 10:25:37 +00:00
Armin Novak
a40467b3b0
Added Stream_ConstBuffer function
2022-02-01 10:25:37 +00:00
Armin Novak
02896b0656
Fixed warnings from WLOG_ASSERT
2022-02-01 08:48:21 +01:00
Armin Novak
ca30e749e9
Fixed unused-but-set-variable and reserved identifier warnings
2022-02-01 08:48:21 +01:00
Armin Novak
bc08ebc01c
Corrected const arguments for wStream functions
...
Functions only extracting values now use const for wStream argument
2022-01-31 16:13:06 +01:00
Armin Novak
6fc260b285
Fixed integer range warnings, added tests
2022-01-31 16:13:06 +01:00
Armin Novak
d4e557122b
Fixed constant definitions
...
Define signed values instead of raw values
2022-01-31 16:13:06 +01:00