From 99d3e4c92dd2afd18dc7ca70444415e64ed65566 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sat, 19 Apr 2008 22:04:29 -0500 Subject: [PATCH] crypt32: Remove tests for properties not present on all systems. --- dlls/crypt32/tests/cert.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c index 0ab9334b0c..3fce85e6bf 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); -- 2.33.8