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
4d203fe9
Commit
4d203fe9
authored
Oct 18, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Pass reg store's key and memory store to CRYPT_RegReadFromReg, rather…
crypt32: Pass reg store's key and memory store to CRYPT_RegReadFromReg, rather than passing a private type.
parent
88944963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
regstore.c
dlls/crypt32/regstore.c
+11
-11
No files found.
dlls/crypt32/regstore.c
View file @
4d203fe9
...
@@ -63,8 +63,8 @@ static const WCHAR CRLsW[] = { 'C','R','L','s',0 };
...
@@ -63,8 +63,8 @@ static const WCHAR CRLsW[] = { 'C','R','L','s',0 };
static
const
WCHAR
CTLsW
[]
=
{
'C'
,
'T'
,
'L'
,
's'
,
0
};
static
const
WCHAR
CTLsW
[]
=
{
'C'
,
'T'
,
'L'
,
's'
,
0
};
static
const
WCHAR
BlobW
[]
=
{
'B'
,
'l'
,
'o'
,
'b'
,
0
};
static
const
WCHAR
BlobW
[]
=
{
'B'
,
'l'
,
'o'
,
'b'
,
0
};
static
void
CRYPT_RegReadSerializedFromReg
(
const
WINE_REGSTOREINFO
*
store
,
HKEY
key
,
static
void
CRYPT_RegReadSerializedFromReg
(
HKEY
key
,
DWORD
contextType
,
DWORD
contextTyp
e
)
HCERTSTORE
stor
e
)
{
{
LONG
rc
;
LONG
rc
;
DWORD
index
=
0
;
DWORD
index
=
0
;
...
@@ -136,7 +136,7 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY
...
@@ -136,7 +136,7 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY
{
{
TRACE
(
"hash matches, adding
\n
"
);
TRACE
(
"hash matches, adding
\n
"
);
contextInterface
->
addContextToStore
(
contextInterface
->
addContextToStore
(
store
->
memStore
,
context
,
store
,
context
,
CERT_STORE_ADD_REPLACE_EXISTING
,
NULL
);
CERT_STORE_ADD_REPLACE_EXISTING
,
NULL
);
}
}
else
else
...
@@ -156,7 +156,7 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY
...
@@ -156,7 +156,7 @@ static void CRYPT_RegReadSerializedFromReg(const WINE_REGSTOREINFO *store, HKEY
}
while
(
!
rc
);
}
while
(
!
rc
);
}
}
static
void
CRYPT_RegReadFromReg
(
const
WINE_REGSTOREINFO
*
store
)
static
void
CRYPT_RegReadFromReg
(
HKEY
key
,
HCERTSTORE
store
)
{
{
static
const
WCHAR
*
const
subKeys
[]
=
{
CertsW
,
CRLsW
,
CTLsW
};
static
const
WCHAR
*
const
subKeys
[]
=
{
CertsW
,
CRLsW
,
CTLsW
};
static
const
DWORD
contextFlags
[]
=
{
CERT_STORE_CERTIFICATE_CONTEXT_FLAG
,
static
const
DWORD
contextFlags
[]
=
{
CERT_STORE_CERTIFICATE_CONTEXT_FLAG
,
...
@@ -165,15 +165,15 @@ static void CRYPT_RegReadFromReg(const WINE_REGSTOREINFO *store)
...
@@ -165,15 +165,15 @@ static void CRYPT_RegReadFromReg(const WINE_REGSTOREINFO *store)
for
(
i
=
0
;
i
<
sizeof
(
subKeys
)
/
sizeof
(
subKeys
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
subKeys
)
/
sizeof
(
subKeys
[
0
]);
i
++
)
{
{
HKEY
k
ey
;
HKEY
hK
ey
;
LONG
rc
;
LONG
rc
;
rc
=
RegCreateKeyExW
(
store
->
key
,
subKeys
[
i
],
0
,
NULL
,
0
,
KEY_READ
,
NULL
,
rc
=
RegCreateKeyExW
(
key
,
subKeys
[
i
],
0
,
NULL
,
0
,
KEY_READ
,
NULL
,
&
k
ey
,
NULL
);
&
hK
ey
,
NULL
);
if
(
!
rc
)
if
(
!
rc
)
{
{
CRYPT_RegReadSerializedFromReg
(
store
,
key
,
contextFlags
[
i
]
);
CRYPT_RegReadSerializedFromReg
(
hKey
,
contextFlags
[
i
],
store
);
RegCloseKey
(
k
ey
);
RegCloseKey
(
hK
ey
);
}
}
}
}
}
}
...
@@ -444,7 +444,7 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
...
@@ -444,7 +444,7 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
case
CERT_STORE_CTRL_RESYNC
:
case
CERT_STORE_CTRL_RESYNC
:
CRYPT_RegFlushStore
(
store
,
FALSE
);
CRYPT_RegFlushStore
(
store
,
FALSE
);
CRYPT_EmptyStore
(
store
->
memStore
);
CRYPT_EmptyStore
(
store
->
memStore
);
CRYPT_RegReadFromReg
(
store
);
CRYPT_RegReadFromReg
(
store
->
key
,
store
->
memStore
);
ret
=
TRUE
;
ret
=
TRUE
;
break
;
break
;
case
CERT_STORE_CTRL_COMMIT
:
case
CERT_STORE_CTRL_COMMIT
:
...
@@ -523,7 +523,7 @@ PWINECRYPT_CERTSTORE CRYPT_RegOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags,
...
@@ -523,7 +523,7 @@ PWINECRYPT_CERTSTORE CRYPT_RegOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags,
regInfo
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PWINE_REGSTOREINFO->cs"
);
regInfo
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PWINE_REGSTOREINFO->cs"
);
list_init
(
&
regInfo
->
certsToDelete
);
list_init
(
&
regInfo
->
certsToDelete
);
list_init
(
&
regInfo
->
crlsToDelete
);
list_init
(
&
regInfo
->
crlsToDelete
);
CRYPT_RegReadFromReg
(
regInfo
);
CRYPT_RegReadFromReg
(
regInfo
->
key
,
regInfo
->
memStore
);
regInfo
->
dirty
=
FALSE
;
regInfo
->
dirty
=
FALSE
;
provInfo
.
cbSize
=
sizeof
(
provInfo
);
provInfo
.
cbSize
=
sizeof
(
provInfo
);
provInfo
.
cStoreProvFunc
=
sizeof
(
regProvFuncs
)
/
provInfo
.
cStoreProvFunc
=
sizeof
(
regProvFuncs
)
/
...
...
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