Andrew Talbot : crypt32/tests: Write-strings warning fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 1 06:48:37 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 9a1e6aae55b1d06779a9aeb745ed0971fecf558e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9a1e6aae55b1d06779a9aeb745ed0971fecf558e
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Wed May 31 20:18:13 2006 +0100
crypt32/tests: Write-strings warning fix.
---
dlls/crypt32/tests/cert.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 776d117..56276e8 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -754,6 +754,9 @@ static void testComparePublicKeyInfo(voi
{
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 @@ static void testComparePublicKeyInfo(voi
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-cvs
mailing list