Juan Lang : cryptnet: Trace more reasons for revocation failure.

Alexandre Julliard julliard at winehq.org
Mon Mar 14 14:29:33 CDT 2011


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Mar 11 13:44:26 2011 -0800

cryptnet: Trace more reasons for revocation failure.

---

 dlls/cryptnet/cryptnet_main.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c
index 204590f..3b9a044 100644
--- a/dlls/cryptnet/cryptnet_main.c
+++ b/dlls/cryptnet/cryptnet_main.c
@@ -1767,12 +1767,19 @@ static DWORD verify_cert_revocation(PCCERT_CONTEXT cert, DWORD index,
             }
             else
             {
+                TRACE("no CRL found\n");
                 error = CRYPT_E_NO_REVOCATION_CHECK;
                 pRevStatus->dwIndex = index;
             }
         }
         else
         {
+            if (!pRevPara)
+                WARN("no CERT_REVOCATION_PARA\n");
+            else if (!pRevPara->hCrlStore)
+                WARN("no dist points/aia extension and no CRL store\n");
+            else if (!pRevPara->pIssuerCert)
+                WARN("no dist points/aia extension and no issuer\n");
             error = CRYPT_E_NO_REVOCATION_CHECK;
             pRevStatus->dwIndex = index;
         }




More information about the wine-cvs mailing list