projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2796bd5
)
[MSTSC] Addendum to r74577. CORE-13263
author
Peter Hater
<7element@mail.bg>
Thu, 18 May 2017 08:57:26 +0000
(08:57 +0000)
committer
Peter Hater
<7element@mail.bg>
Thu, 18 May 2017 08:57:26 +0000
(08:57 +0000)
svn path=/trunk/; revision=74578
reactos/base/applications/mstsc/ssl_calls.c
patch
|
blob
|
history
diff --git
a/reactos/base/applications/mstsc/ssl_calls.c
b/reactos/base/applications/mstsc/ssl_calls.c
index
d02a50b
..
3843536
100644
(file)
--- a/
reactos/base/applications/mstsc/ssl_calls.c
+++ b/
reactos/base/applications/mstsc/ssl_calls.c
@@
-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);