fixed GH #2775: Fix issue in NetSSL_Win. Windows Server 2016 reboots while trying to establish an SSL connection

This commit is contained in:
Günter Obiltschnig 2019-08-23 21:00:56 +02:00
parent b4fd25c620
commit ef516fa767

View File

@ -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;