mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[MSTSC] Addendum to r74577. CORE-13263
svn path=/trunk/; revision=74578
This commit is contained in:
parent
2796bd5d20
commit
a1a782be93
|
@ -1673,6 +1673,18 @@ uint8 *rdssl_cert_to_rkey(PCCERT_CONTEXT cert, uint32 * key_len)
|
|||
PROV_RSA_FULL,
|
||||
0);
|
||||
if (!ret)
|
||||
{
|
||||
dwErr = GetLastError();
|
||||
if (dwErr == NTE_BAD_KEYSET)
|
||||
{
|
||||
ret = CryptAcquireContext(&hCryptProv,
|
||||
L"MSTSC",
|
||||
MS_ENHANCED_PROV,
|
||||
PROV_RSA_FULL,
|
||||
CRYPT_NEWKEYSET);
|
||||
}
|
||||
}
|
||||
if (!ret)
|
||||
{
|
||||
dwErr = GetLastError();
|
||||
error("CryptAcquireContext call failed with %lx\n", dwErr);
|
||||
|
|
Loading…
Reference in a new issue