mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 05:52:55 +00:00
[MSTSC] Addendum to r74577. CORE-13263
svn path=/trunk/; revision=74578
This commit is contained in:
parent
2796bd5d20
commit
a1a782be93
1 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue