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
71bd1339
Commit
71bd1339
authored
Oct 14, 2016
by
Donat Enikeev
Committed by
Alexandre Julliard
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Cert(Un)RegisterSystemStore semi-stubs.
Signed-off-by:
Donat Enikeev
<
donat@enikeev.net
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dc208e72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
crypt32.spec
dlls/crypt32/crypt32.spec
+2
-0
store.c
dlls/crypt32/store.c
+45
-0
No files found.
dlls/crypt32/crypt32.spec
View file @
71bd1339
...
...
@@ -78,6 +78,7 @@
@ stdcall CertRDNValueToStrA(long ptr ptr long)
@ stdcall CertRDNValueToStrW(long ptr ptr long)
@ stdcall CertRegisterPhysicalStore(ptr long wstr ptr ptr)
@ stdcall CertRegisterSystemStore(ptr long ptr ptr)
@ stdcall CertRemoveEnhancedKeyUsageIdentifier(ptr str)
@ stdcall CertRemoveStoreFromCollection(ptr ptr)
@ stdcall CertSaveStore(ptr long long long ptr long)
...
...
@@ -190,6 +191,7 @@
@ stdcall CryptUnprotectMemory(ptr long long)
@ stdcall CryptUnregisterDefaultOIDFunction(long str wstr)
@ stdcall CryptUnregisterOIDFunction(long str str)
@ stdcall CertUnregisterSystemStore(ptr long)
@ stub CryptUnregisterOIDInfo
@ stdcall CryptVerifyCertificateSignature(long long ptr long ptr)
@ stdcall CryptVerifyCertificateSignatureEx(long long long ptr long ptr long ptr)
...
...
dlls/crypt32/store.c
View file @
71bd1339
...
...
@@ -1390,6 +1390,51 @@ BOOL WINAPI CertRegisterPhysicalStore(const void *pvSystemStore, DWORD dwFlags,
return
FALSE
;
}
BOOL
WINAPI
CertRegisterSystemStore
(
const
void
*
pvSystemStore
,
DWORD
dwFlags
,
PCERT_SYSTEM_STORE_INFO
pStoreInfo
,
void
*
pvReserved
)
{
HCERTSTORE
hstore
;
if
(
dwFlags
&
CERT_SYSTEM_STORE_RELOCATE_FLAG
)
{
FIXME
(
"(%p, %08x, %p, %p): flag not supported
\n
"
,
pvSystemStore
,
dwFlags
,
pStoreInfo
,
pvReserved
);
return
FALSE
;
}
TRACE
(
"(%s, %08x, %p, %p)
\n
"
,
debugstr_w
(
pvSystemStore
),
dwFlags
,
pStoreInfo
,
pvReserved
);
hstore
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY_W
,
0
,
0
,
dwFlags
,
pvSystemStore
);
if
(
hstore
)
{
CertCloseStore
(
hstore
,
0
);
return
TRUE
;
}
return
FALSE
;
}
BOOL
WINAPI
CertUnregisterSystemStore
(
void
*
pvSystemStore
,
DWORD
dwFlags
)
{
HCERTSTORE
hstore
;
if
(
dwFlags
&
CERT_SYSTEM_STORE_RELOCATE_FLAG
)
{
FIXME
(
"(%p, %08x): flag not supported
\n
"
,
pvSystemStore
,
dwFlags
);
return
FALSE
;
}
TRACE
(
"(%s, %08x)
\n
"
,
debugstr_w
(
pvSystemStore
),
dwFlags
);
hstore
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY_W
,
0
,
0
,
dwFlags
|
CERT_STORE_OPEN_EXISTING_FLAG
,
pvSystemStore
);
if
(
hstore
==
NULL
)
return
FALSE
;
hstore
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY_W
,
0
,
0
,
dwFlags
|
CERT_STORE_DELETE_FLAG
,
pvSystemStore
);
if
(
hstore
==
NULL
&&
GetLastError
()
==
0
)
return
TRUE
;
return
FALSE
;
}
static
void
EmptyStore_addref
(
WINECRYPT_CERTSTORE
*
store
)
{
TRACE
(
"(%p)
\n
"
,
store
);
...
...
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