Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
fbbe0039
Commit
fbbe0039
authored
17 years ago
by
Andrew Talbot
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
crypt32: Constify some variables.
parent
ce87522f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/crypt32/protectdata.c
+11
-11
11 additions, 11 deletions
dlls/crypt32/protectdata.c
with
11 additions
and
11 deletions
dlls/crypt32/protectdata.c
+
11
−
11
View file @
fbbe0039
...
...
@@ -111,7 +111,7 @@ static const char crypt_magic_str[] = "Wine Crypt32 ok";
/* debugging tool to print strings of hex chars */
static
const
char
*
hex_str
(
unsigned
char
*
p
,
int
n
)
hex_str
(
const
unsigned
char
*
p
,
int
n
)
{
const
char
*
ptr
;
char
report
[
80
];
...
...
@@ -146,7 +146,7 @@ void serialize_dword(DWORD value,BYTE ** ptr)
}
static
void
serialize_string
(
BYTE
*
str
,
BYTE
**
ptr
,
DWORD
len
,
DWORD
width
,
void
serialize_string
(
const
BYTE
*
str
,
BYTE
**
ptr
,
DWORD
len
,
DWORD
width
,
BOOL
prepend_len
)
{
/*TRACE("called %ux%u\n",(unsigned int)len,(unsigned int)width);*/
...
...
@@ -160,7 +160,7 @@ void serialize_string(BYTE * str,BYTE ** ptr,DWORD len, DWORD width,
}
static
BOOL
unserialize_dword
(
BYTE
*
ptr
,
DWORD
*
index
,
DWORD
size
,
DWORD
*
value
)
BOOL
unserialize_dword
(
const
BYTE
*
ptr
,
DWORD
*
index
,
DWORD
size
,
DWORD
*
value
)
{
/*TRACE("called\n");*/
...
...
@@ -178,7 +178,7 @@ BOOL unserialize_dword(BYTE * ptr, DWORD *index, DWORD size, DWORD * value)
}
static
BOOL
unserialize_string
(
BYTE
*
ptr
,
DWORD
*
index
,
DWORD
size
,
BOOL
unserialize_string
(
const
BYTE
*
ptr
,
DWORD
*
index
,
DWORD
size
,
DWORD
len
,
DWORD
width
,
BOOL
inline_len
,
BYTE
**
data
,
DWORD
*
stored
)
{
...
...
@@ -212,7 +212,7 @@ BOOL unserialize_string(BYTE * ptr, DWORD *index, DWORD size,
}
static
BOOL
serialize
(
struct
protect_data_t
*
pInfo
,
DATA_BLOB
*
pSerial
)
BOOL
serialize
(
const
struct
protect_data_t
*
pInfo
,
DATA_BLOB
*
pSerial
)
{
BYTE
*
ptr
;
DWORD
dwStrLen
;
...
...
@@ -340,7 +340,7 @@ BOOL serialize(struct protect_data_t * pInfo, DATA_BLOB * pSerial)
}
static
BOOL
unserialize
(
DATA_BLOB
*
pSerial
,
struct
protect_data_t
*
pInfo
)
BOOL
unserialize
(
const
DATA_BLOB
*
pSerial
,
struct
protect_data_t
*
pInfo
)
{
BYTE
*
ptr
;
DWORD
index
;
...
...
@@ -484,7 +484,7 @@ BOOL unserialize(DATA_BLOB * pSerial, struct protect_data_t * pInfo)
/* perform sanity checks */
static
BOOL
valid_protect_data
(
struct
protect_data_t
*
pInfo
)
BOOL
valid_protect_data
(
const
struct
protect_data_t
*
pInfo
)
{
BOOL
status
=
TRUE
;
...
...
@@ -681,7 +681,7 @@ BOOL convert_hash_to_blob(HCRYPTHASH hHash, DATA_BLOB * blob)
/* test that a given hash matches an exported-to-blob hash value */
static
BOOL
hash_matches_blob
(
HCRYPTHASH
hHash
,
DATA_BLOB
*
two
)
BOOL
hash_matches_blob
(
HCRYPTHASH
hHash
,
const
DATA_BLOB
*
two
)
{
BOOL
rc
=
FALSE
;
DATA_BLOB
one
;
...
...
@@ -704,8 +704,8 @@ BOOL hash_matches_blob(HCRYPTHASH hHash, DATA_BLOB * two)
/* create an encryption key from a given salt and optional entropy */
static
BOOL
load_encryption_key
(
HCRYPTPROV
hProv
,
DATA_BLOB
*
salt
,
DATA_BLOB
*
pOptionalEntropy
,
HCRYPTKEY
*
phKey
)
BOOL
load_encryption_key
(
HCRYPTPROV
hProv
,
const
DATA_BLOB
*
salt
,
const
DATA_BLOB
*
pOptionalEntropy
,
HCRYPTKEY
*
phKey
)
{
BOOL
rc
=
TRUE
;
HCRYPTHASH
hSaltHash
;
...
...
@@ -768,7 +768,7 @@ BOOL load_encryption_key(HCRYPTPROV hProv, DATA_BLOB * salt,
/* debugging tool to print the structures of a ProtectData call */
static
void
report
(
DATA_BLOB
*
pDataIn
,
DATA_BLOB
*
pOptionalEntropy
,
report
(
const
DATA_BLOB
*
pDataIn
,
const
DATA_BLOB
*
pOptionalEntropy
,
CRYPTPROTECT_PROMPTSTRUCT
*
pPromptStruct
,
DWORD
dwFlags
)
{
TRACE
(
"pPromptStruct: %p
\n
"
,
pPromptStruct
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment