wintrust: Fail creating a chain if a store couldn't be created.
This commit is contained in:
parent
59dcf9c9ee
commit
711ca0f4f3
@ -771,9 +771,13 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
|
|||||||
for (i = 0; i < data->chStores; i++)
|
for (i = 0; i < data->chStores; i++)
|
||||||
CertAddStoreToCollection(store, data->pahStores[i], 0, 0);
|
CertAddStoreToCollection(store, data->pahStores[i], 0, 0);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
/* Expect the end certificate for each signer to be the only cert in the
|
if (ret)
|
||||||
* chain:
|
{
|
||||||
|
/* Expect the end certificate for each signer to be the only cert in
|
||||||
|
* the chain:
|
||||||
*/
|
*/
|
||||||
if (data->pasSigners[signer].csCertChain)
|
if (data->pasSigners[signer].csCertChain)
|
||||||
{
|
{
|
||||||
@ -800,7 +804,8 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
|
|||||||
ret = data->psPfns->pfnCertCheckPolicy(data, signer,
|
ret = data->psPfns->pfnCertCheckPolicy(data, signer,
|
||||||
FALSE, 0);
|
FALSE, 0);
|
||||||
else
|
else
|
||||||
TRACE("no cert check policy, skipping policy check\n");
|
TRACE(
|
||||||
|
"no cert check policy, skipping policy check\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -811,6 +816,7 @@ static BOOL WINTRUST_CreateChainForSigner(CRYPT_PROVIDER_DATA *data,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CertCloseStore(store, 0);
|
CertCloseStore(store, 0);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user