crypt32: Don't add end cert's store to world.
This commit is contained in:
parent
e9ee8c8717
commit
8698a598fc
|
@ -572,8 +572,6 @@ static BOOL CRYPT_BuildCandidateChainFromCert(HCERTCHAINENGINE hChainEngine,
|
||||||
world = CertOpenStore(CERT_STORE_PROV_COLLECTION, 0, 0,
|
world = CertOpenStore(CERT_STORE_PROV_COLLECTION, 0, 0,
|
||||||
CERT_STORE_CREATE_NEW_FLAG, NULL);
|
CERT_STORE_CREATE_NEW_FLAG, NULL);
|
||||||
CertAddStoreToCollection(world, engine->hWorld, 0, 0);
|
CertAddStoreToCollection(world, engine->hWorld, 0, 0);
|
||||||
if (cert->hCertStore)
|
|
||||||
CertAddStoreToCollection(world, cert->hCertStore, 0, 0);
|
|
||||||
if (hAdditionalStore)
|
if (hAdditionalStore)
|
||||||
CertAddStoreToCollection(world, hAdditionalStore, 0, 0);
|
CertAddStoreToCollection(world, hAdditionalStore, 0, 0);
|
||||||
/* FIXME: only simple chains are supported for now, as CTLs aren't
|
/* FIXME: only simple chains are supported for now, as CTLs aren't
|
||||||
|
|
|
@ -1583,7 +1583,7 @@ static ChainCheck chainCheckNoStore[] = {
|
||||||
{ CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_UNTRUSTED_ROOT |
|
{ CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_UNTRUSTED_ROOT |
|
||||||
CERT_TRUST_IS_NOT_TIME_VALID, 0 },
|
CERT_TRUST_IS_NOT_TIME_VALID, 0 },
|
||||||
1, simpleStatus8NoStore },
|
1, simpleStatus8NoStore },
|
||||||
TODO_ELEMENTS | TODO_ERROR | TODO_INFO },
|
TODO_CHAIN | TODO_ERROR | TODO_INFO },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Wednesday, Oct 1, 2007 */
|
/* Wednesday, Oct 1, 2007 */
|
||||||
|
|
Loading…
Reference in New Issue