From a3991f48f703a53702816494664a5120f744c2f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 1 Sep 2014 20:58:41 +0000 Subject: [PATCH] [CRYPT32] - Merge the "Root" and the "AuthRoot" certificate stores This, with the now almost faaous gnutls DLLs, allows mshtml:events test to not hang svn path=/trunk/; revision=64026 --- reactos/dll/win32/crypt32/rootstore.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reactos/dll/win32/crypt32/rootstore.c b/reactos/dll/win32/crypt32/rootstore.c index 414b0d81d2f..f3c8bbac178 100644 --- a/reactos/dll/win32/crypt32/rootstore.c +++ b/reactos/dll/win32/crypt32/rootstore.c @@ -800,6 +800,18 @@ static HCERTSTORE create_root_store(void) read_trusted_roots_from_known_locations(memStore); add_ms_root_certs(memStore); root = CRYPT_ProvCreateStore(0, memStore, &provInfo); +#ifdef __REACTOS__ + { + HCERTSTORE regStore = CertOpenStore(CERT_STORE_PROV_SYSTEM_W, 0, 0, CERT_SYSTEM_STORE_LOCAL_MACHINE, L"AuthRoot"); + if (regStore) + { + HCERTSTORE collStore = CertOpenStore(CERT_STORE_PROV_COLLECTION, 0, 0, + CERT_STORE_CREATE_NEW_FLAG, NULL); + CertAddStoreToCollection(collStore, regStore, 0, 0); + root = collStore; + } + } +#endif } TRACE("returning %p\n", root); return root; -- 2.17.1