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
5b3499de
Commit
5b3499de
authored
Jun 03, 2005
by
Juan Lang
Committed by
Alexandre Julliard
Jun 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of a magic number, and improve stubs of
CertOpenSystemStoreA/W.
parent
5af64e48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
cert.c
dlls/crypt32/cert.c
+18
-6
No files found.
dlls/crypt32/cert.c
View file @
5b3499de
/*
* Copyright 2002 Mike McCormack for CodeWeavers
* Copyright
(C) 2004
Juan Lang
* Copyright
2004,2005
Juan Lang
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -54,10 +54,14 @@ HCERTSTORE WINAPI CertOpenStore( LPCSTR lpszStoreProvider,
FIXME
(
"%s %08lx %08lx %08lx %p stub
\n
"
,
debugstr_a
(
lpszStoreProvider
),
dwMsgAndCertEncodingType
,
hCryptProv
,
dwFlags
,
pvPara
);
if
(
lpszStoreProvider
==
(
LPCSTR
)
0x0009
)
if
(
lpszStoreProvider
==
CERT_STORE_PROV_SYSTEM_A
)
{
FIXME
(
"pvPara = %s
\n
"
,
debugstr_a
(
(
LPCSTR
)
pvPara
)
);
}
else
if
(
lpszStoreProvider
==
CERT_STORE_PROV_SYSTEM_W
)
{
FIXME
(
"pvPara = %s
\n
"
,
debugstr_w
(
(
LPCWSTR
)
pvPara
)
);
}
hcs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WINECRYPT_CERTSTORE
)
);
if
(
!
hcs
)
...
...
@@ -71,15 +75,17 @@ HCERTSTORE WINAPI CertOpenStore( LPCSTR lpszStoreProvider,
HCERTSTORE
WINAPI
CertOpenSystemStoreA
(
HCRYPTPROV
hProv
,
LPCSTR
szSubSystemProtocol
)
{
FIXME
(
"(%ld, %s), stub
\n
"
,
hProv
,
debugstr_a
(
szSubSystemProtocol
));
return
(
HCERTSTORE
)
1
;
return
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_A
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
|
CERT_SYSTEM_STORE_LOCAL_MACHINE
|
CERT_SYSTEM_STORE_USERS
,
szSubSystemProtocol
);
}
HCERTSTORE
WINAPI
CertOpenSystemStoreW
(
HCRYPTPROV
hProv
,
LPCWSTR
szSubSystemProtocol
)
{
FIXME
(
"(%ld, %s), stub
\n
"
,
hProv
,
debugstr_w
(
szSubSystemProtocol
));
return
(
HCERTSTORE
)
1
;
return
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_W
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
|
CERT_SYSTEM_STORE_LOCAL_MACHINE
|
CERT_SYSTEM_STORE_USERS
,
szSubSystemProtocol
);
}
PCCERT_CONTEXT
WINAPI
CertEnumCertificatesInStore
(
HCERTSTORE
hCertStore
,
PCCERT_CONTEXT
pPrev
)
...
...
@@ -142,10 +148,16 @@ BOOL WINAPI CertFreeCRLContext( PCCRL_CONTEXT pCrlContext)
BOOL
WINAPI
CertCloseStore
(
HCERTSTORE
hCertStore
,
DWORD
dwFlags
)
{
WINECRYPT_CERTSTORE
*
hcs
=
(
WINECRYPT_CERTSTORE
*
)
hCertStore
;
FIXME
(
"%p %08lx
\n
"
,
hCertStore
,
dwFlags
);
if
(
!
hCertStore
)
return
FALSE
;
if
(
hcs
->
dwMagic
!=
WINE_CRYPTCERTSTORE_MAGIC
)
return
FALSE
;
hcs
->
dwMagic
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
hCertStore
);
return
TRUE
;
...
...
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