forked from wolfSSL/wolfssl
Merge pull request #7440 from douzzer/20240417-fix-LoadSystemCaCertsWindows
20240417-fix-LoadSystemCaCertsWindows
This commit is contained in:
@ -2872,7 +2872,7 @@ static int LoadSystemCaCertsWindows(WOLFSSL_CTX* ctx, byte* loaded)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; (ret == 0) && (i < sizeof(storeNames)/sizeof(*storeNames));
|
for (i = 0; (ret == 1) && (i < sizeof(storeNames)/sizeof(*storeNames));
|
||||||
++i) {
|
++i) {
|
||||||
handle = CertOpenSystemStoreA(hProv, storeNames[i]);
|
handle = CertOpenSystemStoreA(hProv, storeNames[i]);
|
||||||
if (handle != NULL) {
|
if (handle != NULL) {
|
||||||
|
Reference in New Issue
Block a user