mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[smartcard] fix smartcard listing with /kerberos:pkcs11-module:<path>
When a PKCS11 module was provided, the CSP could not be set by command line arguments, leading to an error when loading the ncrypt module, and an empty smartcard list.
This commit is contained in:
@@ -603,6 +603,9 @@ static BOOL smartcard_hw_enumerateCerts(const rdpSettings* settings, LPCWSTR csp
|
||||
/* load a unique CSP by pkcs11 module path */
|
||||
LPCSTR paths[] = { Pkcs11Module, NULL };
|
||||
|
||||
if (!csp)
|
||||
csp = MS_SCARD_PROV;
|
||||
|
||||
status = winpr_NCryptOpenStorageProviderEx(&provider, csp, 0, paths);
|
||||
if (status != ERROR_SUCCESS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user