Jacek Caban : crypt32: Use CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL flag for root store certificate' s chain validation.
Alexandre Julliard
julliard at winehq.org
Tue Sep 3 13:38:04 CDT 2013
Module: wine
Branch: master
Commit: 9db146f54414f7ac812e33c0d0ed92bf11cc2296
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9db146f54414f7ac812e33c0d0ed92bf11cc2296
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Sep 3 14:14:27 2013 +0200
crypt32: Use CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL flag for root store certificate's chain validation.
---
dlls/crypt32/rootstore.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c
index 4e4e4e4..a6a4f34 100644
--- a/dlls/crypt32/rootstore.c
+++ b/dlls/crypt32/rootstore.c
@@ -256,9 +256,10 @@ static void check_and_store_certs(HCERTSTORE from, HCERTSTORE to)
{
CERT_CHAIN_PARA chainPara = { sizeof(chainPara), { 0 } };
PCCERT_CHAIN_CONTEXT chain;
- BOOL ret = CertGetCertificateChain(engine, cert, NULL, from,
- &chainPara, 0, NULL, &chain);
+ BOOL ret;
+ ret = CertGetCertificateChain(engine, cert, NULL, from,
+ &chainPara, CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL, NULL, &chain);
if (!ret)
TRACE("rejecting %s: %s\n", get_cert_common_name(cert),
"chain creation failed");
More information about the wine-cvs
mailing list