mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 13:23:25 +00:00
crypt32/tests: Write-strings warnings test.
This commit is contained in:
parent
c242c3b3f3
commit
ee9b18f04b
@ -659,6 +659,8 @@ static void test_encodeName(DWORD dwEncoding)
|
|||||||
CERT_RDN_ATTR attrs[2];
|
CERT_RDN_ATTR attrs[2];
|
||||||
CERT_RDN rdn;
|
CERT_RDN rdn;
|
||||||
CERT_NAME_INFO info;
|
CERT_NAME_INFO info;
|
||||||
|
static CHAR oid_common_name[] = szOID_COMMON_NAME,
|
||||||
|
oid_sur_name[] = szOID_SUR_NAME;
|
||||||
BYTE *buf = NULL;
|
BYTE *buf = NULL;
|
||||||
DWORD size = 0;
|
DWORD size = 0;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
@ -721,11 +723,11 @@ static void test_encodeName(DWORD dwEncoding)
|
|||||||
/* Check with two CERT_RDN_ATTRs. Note DER encoding forces the order of
|
/* Check with two CERT_RDN_ATTRs. Note DER encoding forces the order of
|
||||||
* the encoded attributes to be swapped.
|
* 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].dwValueType = CERT_RDN_PRINTABLE_STRING;
|
||||||
attrs[0].Value.cbData = sizeof(commonName);
|
attrs[0].Value.cbData = sizeof(commonName);
|
||||||
attrs[0].Value.pbData = (BYTE *)commonName;
|
attrs[0].Value.pbData = (BYTE *)commonName;
|
||||||
attrs[1].pszObjId = szOID_SUR_NAME;
|
attrs[1].pszObjId = oid_sur_name;
|
||||||
attrs[1].dwValueType = CERT_RDN_PRINTABLE_STRING;
|
attrs[1].dwValueType = CERT_RDN_PRINTABLE_STRING;
|
||||||
attrs[1].Value.cbData = sizeof(surName);
|
attrs[1].Value.cbData = sizeof(surName);
|
||||||
attrs[1].Value.pbData = (BYTE *)surName;
|
attrs[1].Value.pbData = (BYTE *)surName;
|
||||||
@ -2839,6 +2841,7 @@ static void test_encodeCRLToBeSigned(DWORD dwEncoding)
|
|||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
BYTE *buf = NULL;
|
BYTE *buf = NULL;
|
||||||
|
static CHAR oid_issuing_dist_point[] = szOID_ISSUING_DIST_POINT;
|
||||||
DWORD size = 0;
|
DWORD size = 0;
|
||||||
CRL_INFO info = { 0 };
|
CRL_INFO info = { 0 };
|
||||||
CRL_ENTRY entry = { { 0 }, { 0 }, 0, 0 };
|
CRL_ENTRY entry = { { 0 }, { 0 }, 0, 0 };
|
||||||
@ -2948,7 +2951,7 @@ static void test_encodeCRLToBeSigned(DWORD dwEncoding)
|
|||||||
LocalFree(buf);
|
LocalFree(buf);
|
||||||
}
|
}
|
||||||
/* a v2 CRL with an issuing dist point extension */
|
/* a v2 CRL with an issuing dist point extension */
|
||||||
ext.pszObjId = szOID_ISSUING_DIST_POINT;
|
ext.pszObjId = oid_issuing_dist_point;
|
||||||
ext.fCritical = TRUE;
|
ext.fCritical = TRUE;
|
||||||
ext.Value.cbData = sizeof(urlIDP);
|
ext.Value.cbData = sizeof(urlIDP);
|
||||||
ext.Value.pbData = (LPBYTE)urlIDP;
|
ext.Value.pbData = (LPBYTE)urlIDP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user