crypt32/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Jul 27 13:45:58 CDT 2006
Changelog:
crypt32/tests: Write-strings warnings fix.
diff -urN a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
--- a/dlls/crypt32/tests/encode.c 2006-07-27 17:27:18.000000000 +0100
+++ b/dlls/crypt32/tests/encode.c 2006-07-27 19:28:27.000000000 +0100
@@ -806,6 +806,8 @@
CERT_RDN_ATTR attrs[2];
CERT_RDN rdn;
CERT_NAME_INFO info;
+ static CHAR oid_common_name[] = szOID_COMMON_NAME,
+ oid_sur_name[] = szOID_SUR_NAME;
BYTE *buf = NULL;
DWORD size = 0;
BOOL ret;
@@ -830,7 +832,7 @@
/* Check with one CERT_RDN_ATTR, that has an invalid character for the
* encoding (the NULL).
*/
- attrs[0].pszObjId = szOID_COMMON_NAME;
+ attrs[0].pszObjId = oid_common_name;
attrs[0].dwValueType = CERT_RDN_PRINTABLE_STRING;
attrs[0].Value.cbData = sizeof(commonNameW);
attrs[0].Value.pbData = (BYTE *)commonNameW;
@@ -846,11 +848,11 @@
/* Check with two NULL-terminated CERT_RDN_ATTRs. Note DER encoding
* forces the order of the encoded attributes to be swapped.
*/
- attrs[0].pszObjId = szOID_COMMON_NAME;
+ attrs[0].pszObjId = oid_common_name;
attrs[0].dwValueType = CERT_RDN_PRINTABLE_STRING;
attrs[0].Value.cbData = 0;
attrs[0].Value.pbData = (BYTE *)commonNameW;
- attrs[1].pszObjId = szOID_SUR_NAME;
+ attrs[1].pszObjId = oid_sur_name;
attrs[1].dwValueType = CERT_RDN_PRINTABLE_STRING;
attrs[1].Value.cbData = 0;
attrs[1].Value.pbData = (BYTE *)surNameW;
More information about the wine-patches
mailing list