crypt32/tests: Get rid of win9x specific checks.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
926dd78069
commit
4422a96a23
|
@ -3232,15 +3232,11 @@ static void testComparePublicKeyInfo(void)
|
||||||
ret = CertComparePublicKeyInfo(0, &info1, &info2);
|
ret = CertComparePublicKeyInfo(0, &info1, &info2);
|
||||||
ok(!ret, "CertComparePublicKeyInfo: as raw binary: keys should be unequal\n");
|
ok(!ret, "CertComparePublicKeyInfo: as raw binary: keys should be unequal\n");
|
||||||
ret = CertComparePublicKeyInfo(X509_ASN_ENCODING, &info1, &info2);
|
ret = CertComparePublicKeyInfo(X509_ASN_ENCODING, &info1, &info2);
|
||||||
ok(ret ||
|
ok(ret, "CertComparePublicKeyInfo: as ASN.1 encoded: keys should be equal\n");
|
||||||
broken(!ret), /* win9x */
|
|
||||||
"CertComparePublicKeyInfo: as ASN.1 encoded: keys should be equal\n");
|
|
||||||
info1.PublicKey.cUnusedBits = 1;
|
info1.PublicKey.cUnusedBits = 1;
|
||||||
info2.PublicKey.cUnusedBits = 5;
|
info2.PublicKey.cUnusedBits = 5;
|
||||||
ret = CertComparePublicKeyInfo(X509_ASN_ENCODING, &info1, &info2);
|
ret = CertComparePublicKeyInfo(X509_ASN_ENCODING, &info1, &info2);
|
||||||
ok(ret ||
|
ok(ret, "CertComparePublicKeyInfo: ASN.1 encoding should ignore cUnusedBits\n");
|
||||||
broken(!ret), /* win9x */
|
|
||||||
"CertComparePublicKeyInfo: ASN.1 encoding should ignore cUnusedBits\n");
|
|
||||||
info1.PublicKey.cUnusedBits = 0;
|
info1.PublicKey.cUnusedBits = 0;
|
||||||
info2.PublicKey.cUnusedBits = 0;
|
info2.PublicKey.cUnusedBits = 0;
|
||||||
info1.PublicKey.cbData--; /* kill one byte, make ASN.1 encoded data invalid */
|
info1.PublicKey.cbData--; /* kill one byte, make ASN.1 encoded data invalid */
|
||||||
|
|
Loading…
Reference in New Issue