Juan Lang : crypt32: Fix chain error status when a cert's issuer can' t be found.
Alexandre Julliard
julliard at winehq.org
Fri Oct 31 09:23:51 CDT 2008
Module: wine
Branch: master
Commit: 558057b4b22dbe71f05e257294ebc2af78effb5d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=558057b4b22dbe71f05e257294ebc2af78effb5d
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Oct 29 14:09:43 2008 -0700
crypt32: Fix chain error status when a cert's issuer can't be found.
---
dlls/crypt32/chain.c | 1 +
dlls/crypt32/tests/chain.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index f52ac0c..e713362 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -917,6 +917,7 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine,
else
{
TRACE("Couldn't find issuer, halting chain creation\n");
+ chain->TrustStatus.dwErrorStatus |= CERT_TRUST_IS_PARTIAL_CHAIN;
break;
}
}
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index c583ed4..3d89512 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -1595,7 +1595,7 @@ static ChainCheck chainCheckNoStore[] = {
{ { 0, CERT_TRUST_HAS_PREFERRED_ISSUER },
{ CERT_TRUST_IS_PARTIAL_CHAIN, 0 },
1, simpleStatus8NoStore },
- TODO_ERROR | TODO_INFO },
+ TODO_INFO },
};
/* Wednesday, Oct 1, 2007 */
More information about the wine-cvs
mailing list