mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
When no CSP is provided, we were listing smartcard materials by querying the MS_SCARD_PROV_A CSP, unfortunately on some windows hosts, the smartcards aren't listed in that CSP. So this patch does the key listing by browsing all CSPs instead of just a default one. You can still force a CSP and you'll get keys only from this one. This patch also address cases where the certificate on the smartcard doesn't have a UPN attribute, if that happen we try to get a UPN from the email address.