From ef516fa7674deb29898c9f5890864a318cf62daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 23 Aug 2019 21:00:56 +0200 Subject: [PATCH] fixed GH #2775: Fix issue in NetSSL_Win. Windows Server 2016 reboots while trying to establish an SSL connection --- NetSSL_Win/src/Context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetSSL_Win/src/Context.cpp b/NetSSL_Win/src/Context.cpp index dcb44d3c9..6601e6a1a 100644 --- a/NetSSL_Win/src/Context.cpp +++ b/NetSSL_Win/src/Context.cpp @@ -307,7 +307,7 @@ void Context::acquireSchannelCredentials(CredHandle& credHandle) const schannelCred.dwFlags |= SCH_USE_STRONG_CRYPTO; #endif - schannelCred.hRootStore = _hCollectionCertStore; + schannelCred.hRootStore = schannelCred.hRootStore = isForServerUse() ? _hCollectionCertStore : NULL; TimeStamp tsExpiry; tsExpiry.LowPart = tsExpiry.HighPart = 0;