crypt32: Use skip to avoid failures where support is missing.

oldstable
Juan Lang 2007-06-29 12:37:08 -07:00 committed by Alexandre Julliard
parent ddb4be2bb0
commit 68b052057b
1 changed files with 10 additions and 0 deletions

View File

@ -3086,6 +3086,11 @@ static void test_encodeCRLIssuingDistPoint(DWORD dwEncoding)
ret = CryptEncodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT, NULL,
CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size);
if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
{
skip("no X509_ISSUING_DIST_POINT encode support\n");
return;
}
ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION,
"Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError());
ret = CryptEncodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT, &point,
@ -3218,6 +3223,11 @@ static void test_decodeCRLIssuingDistPoint(DWORD dwEncoding)
ret = CryptDecodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT,
emptySequence, emptySequence[1] + 2, CRYPT_DECODE_ALLOC_FLAG, NULL,
(BYTE *)&buf, &size);
if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
{
skip("no X509_ISSUING_DIST_POINT decode support\n");
return;
}
ok(ret, "CryptDecodeObjectEx failed: %08x\n", GetLastError());
if (ret)
{