Author: phater
Date: Thu May 18 08:57:26 2017
New Revision: 74578
URL:
http://svn.reactos.org/svn/reactos?rev=74578&view=rev
Log:
[MSTSC] Addendum to r74577. CORE-13263
Modified:
trunk/reactos/base/applications/mstsc/ssl_calls.c
Modified: trunk/reactos/base/applications/mstsc/ssl_calls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/ss…
==============================================================================
--- trunk/reactos/base/applications/mstsc/ssl_calls.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mstsc/ssl_calls.c [iso-8859-1] Thu May 18 08:57:26
2017
@@ -1675,6 +1675,18 @@
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);
return NULL;
}