crypt32: Constify some variables.

This commit is contained in:
Andrew Talbot 2010-08-19 22:35:15 +01:00 committed by Alexandre Julliard
parent a271097472
commit 4bdeb7dcb3
2 changed files with 4 additions and 4 deletions

View File

@ -1170,7 +1170,7 @@ static const WCHAR indent[] = { ' ',' ',' ',' ',' ',0 };
static const WCHAR colonCrlf[] = { ':','\r','\n',0 }; static const WCHAR colonCrlf[] = { ':','\r','\n',0 };
static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel, static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
CERT_ALT_NAME_ENTRY *entry, LPWSTR str, DWORD *pcbStr) const CERT_ALT_NAME_ENTRY *entry, LPWSTR str, DWORD *pcbStr)
{ {
BOOL ret; BOOL ret;
WCHAR buf[MAX_STRING_RESOURCE_LEN]; WCHAR buf[MAX_STRING_RESOURCE_LEN];
@ -1354,7 +1354,7 @@ static BOOL CRYPT_FormatAltNameEntry(DWORD dwFormatStrType, DWORD indentLevel,
} }
static BOOL CRYPT_FormatAltNameInfo(DWORD dwFormatStrType, DWORD indentLevel, static BOOL CRYPT_FormatAltNameInfo(DWORD dwFormatStrType, DWORD indentLevel,
CERT_ALT_NAME_INFO *name, LPWSTR str, DWORD *pcbStr) const CERT_ALT_NAME_INFO *name, LPWSTR str, DWORD *pcbStr)
{ {
DWORD i, size, bytesNeeded = 0; DWORD i, size, bytesNeeded = 0;
BOOL ret = TRUE; BOOL ret = TRUE;
@ -1437,7 +1437,7 @@ static BOOL WINAPI CRYPT_FormatAltName(DWORD dwCertEncodingType,
} }
static BOOL CRYPT_FormatCertIssuer(DWORD dwFormatStrType, static BOOL CRYPT_FormatCertIssuer(DWORD dwFormatStrType,
CERT_ALT_NAME_INFO *issuer, LPWSTR str, DWORD *pcbStr) const CERT_ALT_NAME_INFO *issuer, LPWSTR str, DWORD *pcbStr)
{ {
WCHAR buf[MAX_STRING_RESOURCE_LEN]; WCHAR buf[MAX_STRING_RESOURCE_LEN];
DWORD bytesNeeded, sepLen; DWORD bytesNeeded, sepLen;

View File

@ -970,7 +970,7 @@ static PCERT_ALT_NAME_ENTRY cert_find_alt_name_entry(PCCERT_CONTEXT cert,
} }
static DWORD cert_get_name_from_rdn_attr(DWORD encodingType, static DWORD cert_get_name_from_rdn_attr(DWORD encodingType,
PCERT_NAME_BLOB name, LPCSTR oid, LPWSTR pszNameString, DWORD cchNameString) const CERT_NAME_BLOB *name, LPCSTR oid, LPWSTR pszNameString, DWORD cchNameString)
{ {
CERT_NAME_INFO *nameInfo; CERT_NAME_INFO *nameInfo;
DWORD bytes = 0, ret = 0; DWORD bytes = 0, ret = 0;