Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
85f9460a
Commit
85f9460a
authored
Jun 16, 2009
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Constify some variables.
parent
f6c7e48a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
object.c
dlls/crypt32/object.c
+3
-3
str.c
dlls/crypt32/str.c
+1
-1
No files found.
dlls/crypt32/object.c
View file @
85f9460a
...
@@ -1080,7 +1080,7 @@ static BOOL WINAPI CRYPT_FormatBasicConstraints2(DWORD dwCertEncodingType,
...
@@ -1080,7 +1080,7 @@ static BOOL WINAPI CRYPT_FormatBasicConstraints2(DWORD dwCertEncodingType,
return
ret
;
return
ret
;
}
}
static
BOOL
CRYPT_FormatHexStringWithPrefix
(
CRYPT_DATA_BLOB
*
blob
,
int
id
,
static
BOOL
CRYPT_FormatHexStringWithPrefix
(
const
CRYPT_DATA_BLOB
*
blob
,
int
id
,
LPWSTR
str
,
DWORD
*
pcbStr
)
LPWSTR
str
,
DWORD
*
pcbStr
)
{
{
WCHAR
buf
[
MAX_STRING_RESOURCE_LEN
];
WCHAR
buf
[
MAX_STRING_RESOURCE_LEN
];
...
@@ -1114,13 +1114,13 @@ static BOOL CRYPT_FormatHexStringWithPrefix(CRYPT_DATA_BLOB *blob, int id,
...
@@ -1114,13 +1114,13 @@ static BOOL CRYPT_FormatHexStringWithPrefix(CRYPT_DATA_BLOB *blob, int id,
return
ret
;
return
ret
;
}
}
static
BOOL
CRYPT_FormatKeyId
(
CRYPT_DATA_BLOB
*
keyId
,
LPWSTR
str
,
static
BOOL
CRYPT_FormatKeyId
(
const
CRYPT_DATA_BLOB
*
keyId
,
LPWSTR
str
,
DWORD
*
pcbStr
)
DWORD
*
pcbStr
)
{
{
return
CRYPT_FormatHexStringWithPrefix
(
keyId
,
IDS_KEY_ID
,
str
,
pcbStr
);
return
CRYPT_FormatHexStringWithPrefix
(
keyId
,
IDS_KEY_ID
,
str
,
pcbStr
);
}
}
static
BOOL
CRYPT_FormatCertSerialNumber
(
CRYPT_DATA_BLOB
*
serialNum
,
LPWSTR
str
,
static
BOOL
CRYPT_FormatCertSerialNumber
(
const
CRYPT_DATA_BLOB
*
serialNum
,
LPWSTR
str
,
DWORD
*
pcbStr
)
DWORD
*
pcbStr
)
{
{
return
CRYPT_FormatHexStringWithPrefix
(
serialNum
,
IDS_CERT_SERIAL_NUMBER
,
return
CRYPT_FormatHexStringWithPrefix
(
serialNum
,
IDS_CERT_SERIAL_NUMBER
,
...
...
dlls/crypt32/str.c
View file @
85f9460a
...
@@ -341,7 +341,7 @@ static DWORD CRYPT_AddPrefixW(LPCWSTR prefix, LPWSTR psz, DWORD csz)
...
@@ -341,7 +341,7 @@ static DWORD CRYPT_AddPrefixW(LPCWSTR prefix, LPWSTR psz, DWORD csz)
static
const
WCHAR
indent
[]
=
{
' '
,
' '
,
' '
,
' '
,
' '
,
0
};
static
const
WCHAR
indent
[]
=
{
' '
,
' '
,
' '
,
' '
,
' '
,
0
};
DWORD
cert_name_to_str_with_indent
(
DWORD
dwCertEncodingType
,
DWORD
indentLevel
,
DWORD
cert_name_to_str_with_indent
(
DWORD
dwCertEncodingType
,
DWORD
indentLevel
,
PCERT_NAME_BLOB
pName
,
DWORD
dwStrType
,
LPWSTR
psz
,
DWORD
csz
)
const
CERT_NAME_BLOB
*
pName
,
DWORD
dwStrType
,
LPWSTR
psz
,
DWORD
csz
)
{
{
static
const
DWORD
unsupportedFlags
=
CERT_NAME_STR_NO_QUOTING_FLAG
|
static
const
DWORD
unsupportedFlags
=
CERT_NAME_STR_NO_QUOTING_FLAG
|
CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG
;
CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment