Author: jgardou Date: Mon Sep 1 20:58:41 2014 New Revision: 64026
URL: http://svn.reactos.org/svn/reactos?rev=64026&view=rev Log: [CRYPT32] - Merge the "Root" and the "AuthRoot" certificate stores This, with the now almost faaous gnutls DLLs, allows mshtml:events test to not hang
Modified: trunk/reactos/dll/win32/crypt32/rootstore.c
Modified: trunk/reactos/dll/win32/crypt32/rootstore.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/crypt32/rootstore... ============================================================================== --- trunk/reactos/dll/win32/crypt32/rootstore.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/crypt32/rootstore.c [iso-8859-1] Mon Sep 1 20:58:41 2014 @@ -800,6 +800,18 @@ 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;