secur32/tests: Cast-qual warning fixes.
This commit is contained in:
parent
53b225b7ab
commit
6c3efd1c32
|
@ -42,9 +42,9 @@ static const BYTE bigCert[] = { 0x30, 0x7a, 0x02, 0x01, 0x01, 0x30, 0x02, 0x06,
|
||||||
0x4c, 0x61, 0x6e, 0x67, 0x00, 0x30, 0x07, 0x30, 0x02, 0x06, 0x00, 0x03, 0x01,
|
0x4c, 0x61, 0x6e, 0x67, 0x00, 0x30, 0x07, 0x30, 0x02, 0x06, 0x00, 0x03, 0x01,
|
||||||
0x00, 0xa3, 0x16, 0x30, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01,
|
0x00, 0xa3, 0x16, 0x30, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01,
|
||||||
0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02, 0x01, 0x01 };
|
0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02, 0x01, 0x01 };
|
||||||
static const WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e',
|
static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e',
|
||||||
'm','p',0 };
|
'm','p',0 };
|
||||||
static const BYTE privKey[] = {
|
static BYTE privKey[] = {
|
||||||
0x07, 0x02, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x52, 0x53, 0x41, 0x32, 0x00,
|
0x07, 0x02, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x52, 0x53, 0x41, 0x32, 0x00,
|
||||||
0x02, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x79, 0x10, 0x1c, 0xd0, 0x6b, 0x10,
|
0x02, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x79, 0x10, 0x1c, 0xd0, 0x6b, 0x10,
|
||||||
0x18, 0x30, 0x94, 0x61, 0xdc, 0x0e, 0xcb, 0x96, 0x4e, 0x21, 0x3f, 0x79, 0xcd,
|
0x18, 0x30, 0x94, 0x61, 0xdc, 0x0e, 0xcb, 0x96, 0x4e, 0x21, 0x3f, 0x79, 0xcd,
|
||||||
|
@ -116,12 +116,13 @@ static void testAcquireSecurityContext(void)
|
||||||
PCCERT_CONTEXT certs[2];
|
PCCERT_CONTEXT certs[2];
|
||||||
HCRYPTPROV csp;
|
HCRYPTPROV csp;
|
||||||
static CHAR unisp_name_a[] = UNISP_NAME_A;
|
static CHAR unisp_name_a[] = UNISP_NAME_A;
|
||||||
|
static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
HCRYPTKEY key;
|
HCRYPTKEY key;
|
||||||
CRYPT_KEY_PROV_INFO keyProvInfo;
|
CRYPT_KEY_PROV_INFO keyProvInfo;
|
||||||
|
|
||||||
keyProvInfo.pwszContainerName = (LPWSTR)cspNameW;
|
keyProvInfo.pwszContainerName = cspNameW;
|
||||||
keyProvInfo.pwszProvName = (LPWSTR)MS_DEF_PROV_W;
|
keyProvInfo.pwszProvName = ms_def_prov_w;
|
||||||
keyProvInfo.dwProvType = PROV_RSA_FULL;
|
keyProvInfo.dwProvType = PROV_RSA_FULL;
|
||||||
keyProvInfo.dwFlags = 0;
|
keyProvInfo.dwFlags = 0;
|
||||||
keyProvInfo.cProvParam = 0;
|
keyProvInfo.cProvParam = 0;
|
||||||
|
@ -253,7 +254,7 @@ static void testAcquireSecurityContext(void)
|
||||||
ret = CryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL,
|
ret = CryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL,
|
||||||
CRYPT_NEWKEYSET);
|
CRYPT_NEWKEYSET);
|
||||||
ok(ret, "CryptAcquireContextW failed: %08x\n", GetLastError());
|
ok(ret, "CryptAcquireContextW failed: %08x\n", GetLastError());
|
||||||
ret = CryptImportKey(csp, (LPBYTE)privKey, sizeof(privKey), 0, 0, &key);
|
ret = CryptImportKey(csp, privKey, sizeof(privKey), 0, 0, &key);
|
||||||
ok(ret, "CryptImportKey failed: %08x\n", GetLastError());
|
ok(ret, "CryptImportKey failed: %08x\n", GetLastError());
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue