crypt32/tests: Write-strings warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed May 31 14:18:13 CDT 2006
Changelog:
crypt32/tests: Write-strings warning fix.
diff -urN a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
--- a/dlls/crypt32/tests/cert.c 2006-05-26 19:57:38.000000000 +0100
+++ b/dlls/crypt32/tests/cert.c 2006-05-31 19:50:31.000000000 +0100
@@ -754,6 +754,9 @@
{
BOOL ret;
CERT_PUBLIC_KEY_INFO info1 = { { 0 } }, info2 = { { 0 } };
+ static CHAR oid_rsa_rsa[] = szOID_RSA_RSA;
+ static CHAR oid_rsa_sha1rsa[] = szOID_RSA_SHA1RSA;
+ static CHAR oid_x957_dsa[] = szOID_X957_DSA;
static const BYTE bits1[] = { 1, 0 };
static const BYTE bits2[] = { 0 };
static const BYTE bits3[] = { 1 };
@@ -765,11 +768,11 @@
ret = CertComparePublicKeyInfo(0, &info1, &info2);
ok(ret, "CertComparePublicKeyInfo failed: %08lx\n", GetLastError());
/* Different OIDs appear to compare */
- info1.Algorithm.pszObjId = szOID_RSA_RSA;
- info2.Algorithm.pszObjId = szOID_RSA_SHA1RSA;
+ info1.Algorithm.pszObjId = oid_rsa_rsa;
+ info2.Algorithm.pszObjId = oid_rsa_sha1rsa;
ret = CertComparePublicKeyInfo(0, &info1, &info2);
ok(ret, "CertComparePublicKeyInfo failed: %08lx\n", GetLastError());
- info2.Algorithm.pszObjId = szOID_X957_DSA;
+ info2.Algorithm.pszObjId = oid_x957_dsa;
ret = CertComparePublicKeyInfo(0, &info1, &info2);
ok(ret, "CertComparePublicKeyInfo failed: %08lx\n", GetLastError());
info1.PublicKey.cbData = sizeof(bits1);
More information about the wine-patches
mailing list