James Hawkins : crypt32: Remove tests for properties not present on all systems.

Alexandre Julliard julliard at winehq.org
Mon Apr 21 07:46:11 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Sat Apr 19 22:04:29 2008 -0500

crypt32: Remove tests for properties not present on all systems.

---

 dlls/crypt32/tests/cert.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 0ab9334..3fce85e 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -475,14 +475,6 @@ static void testCertProperties(void)
     /* Check a few other implicit properties */
     checkHash(bigCert, sizeof(bigCert), CALG_MD5, context,
      CERT_MD5_HASH_PROP_ID);
-    checkHash(
-     context->pCertInfo->Subject.pbData,
-     context->pCertInfo->Subject.cbData,
-     CALG_MD5, context, CERT_SUBJECT_NAME_MD5_HASH_PROP_ID);
-    checkHash(
-     context->pCertInfo->SubjectPublicKeyInfo.PublicKey.pbData,
-     context->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData,
-     CALG_MD5, context, CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID);
 
     /* Test key contexts and handles and such */
     size = 0;
@@ -1775,7 +1767,7 @@ static void testSignAndEncodeCert(void)
     algID.pszObjId = oid_rsa_md5;
     ret = CryptSignAndEncodeCertificate(0, 0, X509_ASN_ENCODING,
      X509_CERT_TO_BE_SIGNED, &info, &algID, NULL, NULL, &size);
-    ok(ret, "CryptSignAndEncodeCertificate failed: %08x\n", GetLastError());
+    /* oid_rsa_md5 not present in some win2k */
     if (ret)
     {
         LPBYTE buf = HeapAlloc(GetProcessHeap(), 0, size);




More information about the wine-cvs mailing list