crypt32: Make some variables const.

This commit is contained in:
Juan Lang 2008-10-16 12:24:21 -07:00 committed by Alexandre Julliard
parent fa57703266
commit 052238d064
1 changed files with 4 additions and 4 deletions

View File

@ -1660,7 +1660,7 @@ typedef struct _ChainPolicyCheck
DWORD todo;
} ChainPolicyCheck;
static ChainPolicyCheck basePolicyCheck[] = {
static const ChainPolicyCheck basePolicyCheck[] = {
{ { sizeof(chain0) / sizeof(chain0[0]), chain0 },
{ 0, CERT_E_UNTRUSTEDROOT, 0, 1, NULL }, 0 },
{ { sizeof(chain1) / sizeof(chain1[0]), chain1 },
@ -1691,7 +1691,7 @@ static ChainPolicyCheck basePolicyCheck[] = {
{ 0, CERT_E_UNTRUSTEDROOT, 0, 0, NULL }, 0 },
};
static ChainPolicyCheck authenticodePolicyCheck[] = {
static const ChainPolicyCheck authenticodePolicyCheck[] = {
{ { sizeof(chain0) / sizeof(chain0[0]), chain0 },
{ 0, CERT_E_UNTRUSTEDROOT, 0, 1, NULL }, 0 },
{ { sizeof(chain1) / sizeof(chain1[0]), chain1 },
@ -1722,7 +1722,7 @@ static ChainPolicyCheck authenticodePolicyCheck[] = {
{ 0, CERT_E_UNTRUSTEDROOT, 0, 0, NULL }, 0 },
};
static ChainPolicyCheck basicConstraintsPolicyCheck[] = {
static const ChainPolicyCheck basicConstraintsPolicyCheck[] = {
{ { sizeof(chain0) / sizeof(chain0[0]), chain0 },
{ 0, 0, -1, -1, NULL }, 0 },
{ { sizeof(chain1) / sizeof(chain1[0]), chain1 },
@ -1762,7 +1762,7 @@ static const char *num_to_str(WORD num)
return buf;
}
static void checkChainPolicyStatus(LPCSTR policy, ChainPolicyCheck *check,
static void checkChainPolicyStatus(LPCSTR policy, const ChainPolicyCheck *check,
DWORD testIndex)
{
PCCERT_CHAIN_CONTEXT chain = getChain(&check->certs, 0, TRUE, &oct2007,