core: Update smartcard settings on all platforms

Currently smartcard settings were only updated in the WIN32 code path.
This must be done on all platforms to have the correct settings (i.e.
pkinitArgs) correctly applied.
This commit is contained in:
Martin Fleisz 2023-02-23 12:01:09 +01:00 committed by David Fort
parent 09b2096cf2
commit 892e58d969

View File

@ -351,16 +351,16 @@ static BOOL nla_client_setup_identity(rdpNla* nla)
}
else if (settings->SmartcardLogon)
{
#ifdef _WIN32
CERT_CREDENTIAL_INFO certInfo = { sizeof(CERT_CREDENTIAL_INFO), { 0 } };
LPSTR marshalledCredentials;
if (smartCardLogonWasDisabled)
{
if (!nla_adjust_settings_from_smartcard(nla))
return FALSE;
}
#ifdef _WIN32
CERT_CREDENTIAL_INFO certInfo = { sizeof(CERT_CREDENTIAL_INFO), { 0 } };
LPSTR marshalledCredentials;
memcpy(certInfo.rgbHashOfCert, nla->certSha1, sizeof(certInfo.rgbHashOfCert));
if (!CredMarshalCredentialA(CertCredential, &certInfo, &marshalledCredentials))