Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dc7a4e13
Commit
dc7a4e13
authored
Aug 29, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add CTLs to the registry store.
parent
ec1e1b30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
regstore.c
dlls/crypt32/regstore.c
+26
-3
No files found.
dlls/crypt32/regstore.c
View file @
dc7a4e13
...
...
@@ -43,6 +43,7 @@ typedef struct _WINE_REGSTOREINFO
CRITICAL_SECTION
cs
;
struct
list
certsToDelete
;
struct
list
crlsToDelete
;
struct
list
ctlsToDelete
;
}
WINE_REGSTOREINFO
,
*
PWINE_REGSTOREINFO
;
static
void
CRYPT_HashToStr
(
const
BYTE
*
hash
,
LPWSTR
asciiHash
)
...
...
@@ -251,7 +252,7 @@ static BOOL CRYPT_RegWriteToReg(PWINE_REGSTOREINFO store)
const
WINE_CONTEXT_INTERFACE
*
const
interfaces
[]
=
{
pCertInterface
,
pCRLInterface
,
pCTLInterface
};
struct
list
*
listToDelete
[]
=
{
&
store
->
certsToDelete
,
&
store
->
crlsToDelete
,
NULL
};
&
store
->
ctlsToDelete
};
BOOL
ret
=
TRUE
;
DWORD
i
;
...
...
@@ -430,6 +431,27 @@ static BOOL WINAPI CRYPT_RegDeleteCRL(HCERTSTORE hCertStore,
pCRLInterface
);
}
static
BOOL
WINAPI
CRYPT_RegWriteCTL
(
HCERTSTORE
hCertStore
,
PCCTL_CONTEXT
ctl
,
DWORD
dwFlags
)
{
PWINE_REGSTOREINFO
store
=
(
PWINE_REGSTOREINFO
)
hCertStore
;
TRACE
(
"(%p, %p, %d)
\n
"
,
hCertStore
,
ctl
,
dwFlags
);
return
CRYPT_RegWriteContext
(
store
,
ctl
,
dwFlags
);
}
static
BOOL
WINAPI
CRYPT_RegDeleteCTL
(
HCERTSTORE
hCertStore
,
PCCTL_CONTEXT
pCtlContext
,
DWORD
dwFlags
)
{
PWINE_REGSTOREINFO
store
=
(
PWINE_REGSTOREINFO
)
hCertStore
;
TRACE
(
"(%p, %p, %08x)
\n
"
,
store
,
pCtlContext
,
dwFlags
);
return
CRYPT_RegDeleteContext
(
store
,
&
store
->
ctlsToDelete
,
pCtlContext
,
pCTLInterface
);
}
static
BOOL
WINAPI
CRYPT_RegControl
(
HCERTSTORE
hCertStore
,
DWORD
dwFlags
,
DWORD
dwCtrlType
,
void
const
*
pvCtrlPara
)
{
...
...
@@ -475,8 +497,8 @@ static void *regProvFuncs[] = {
CRYPT_RegDeleteCRL
,
NULL
,
/* CERT_STORE_PROV_SET_CRL_PROPERTY_FUNC */
NULL
,
/* CERT_STORE_PROV_READ_CTL_FUNC */
NULL
,
/* CERT_STORE_PROV_WRITE_CTL_FUNC */
NULL
,
/* CERT_STORE_PROV_DELETE_CTL_FUNC */
CRYPT_RegWriteCTL
,
CRYPT_RegDeleteCTL
,
NULL
,
/* CERT_STORE_PROV_SET_CTL_PROPERTY_FUNC */
CRYPT_RegControl
,
};
...
...
@@ -529,6 +551,7 @@ PWINECRYPT_CERTSTORE CRYPT_RegOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags,
regInfo
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PWINE_REGSTOREINFO->cs"
);
list_init
(
&
regInfo
->
certsToDelete
);
list_init
(
&
regInfo
->
crlsToDelete
);
list_init
(
&
regInfo
->
ctlsToDelete
);
CRYPT_RegReadFromReg
(
regInfo
->
key
,
regInfo
->
memStore
);
regInfo
->
dirty
=
FALSE
;
provInfo
.
cbSize
=
sizeof
(
provInfo
);
...
...
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