Juan Lang : crypt32: Check chain root' s trusted status regardless of whether its signature is valid.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 31 14:01:20 CDT 2007


Module: wine
Branch: master
Commit: a4e88cb64402e602ab1a61f859bc8eaafdc5c139
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a4e88cb64402e602ab1a61f859bc8eaafdc5c139

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Aug 30 17:51:45 2007 -0700

crypt32: Check chain root's trusted status regardless of whether its signature is valid.

---

 dlls/crypt32/chain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index 6584085..b87eee1 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -367,7 +367,7 @@ static BOOL CRYPT_BuildSimpleChain(HCERTCHAINENGINE hChainEngine,
                      CERT_TRUST_IS_NOT_SIGNATURE_VALID;
                 }
             }
-            if (ret)
+            if (CRYPT_IsCertificateSelfSigned(root))
             {
                 BYTE hash[20];
                 DWORD size = sizeof(hash);




More information about the wine-cvs mailing list