crypt32: Constify some variables.
This commit is contained in:
parent
a271097472
commit
4bdeb7dcb3
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue