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
39859971
Commit
39859971
authored
Jul 12, 2006
by
Juan Lang
Committed by
Alexandre Julliard
Jul 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add stubs for some stores.
parent
db4d361f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
store.c
dlls/crypt32/store.c
+57
-0
No files found.
dlls/crypt32/store.c
View file @
39859971
...
...
@@ -1723,6 +1723,54 @@ static PWINECRYPT_CERTSTORE CRYPT_SysOpenStoreA(HCRYPTPROV hCryptProv,
return
ret
;
}
static
PWINECRYPT_CERTSTORE
CRYPT_FileNameOpenStoreW
(
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
FIXME
(
"(%ld, %08lx, %s): stub
\n
"
,
hCryptProv
,
dwFlags
,
debugstr_w
((
LPCWSTR
)
pvPara
));
return
NULL
;
}
static
PWINECRYPT_CERTSTORE
CRYPT_FileNameOpenStoreA
(
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
int
len
;
PWINECRYPT_CERTSTORE
ret
=
NULL
;
TRACE
(
"(%ld, %08lx, %s)
\n
"
,
hCryptProv
,
dwFlags
,
debugstr_a
((
LPCSTR
)
pvPara
));
if
(
!
pvPara
)
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
NULL
;
}
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
pvPara
,
-
1
,
NULL
,
0
);
if
(
len
)
{
LPWSTR
storeName
=
CryptMemAlloc
(
len
*
sizeof
(
WCHAR
));
if
(
storeName
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
pvPara
,
-
1
,
storeName
,
len
);
ret
=
CRYPT_FileNameOpenStoreW
(
hCryptProv
,
dwFlags
,
storeName
);
CryptMemFree
(
storeName
);
}
}
return
ret
;
}
static
PWINECRYPT_CERTSTORE
CRYPT_PhysOpenStoreW
(
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
if
(
dwFlags
&
CERT_SYSTEM_STORE_RELOCATE_FLAG
)
FIXME
(
"(%ld, %08lx, %p): stub
\n
"
,
hCryptProv
,
dwFlags
,
pvPara
);
else
FIXME
(
"(%ld, %08lx, %s): stub
\n
"
,
hCryptProv
,
dwFlags
,
debugstr_w
((
LPCWSTR
)
pvPara
));
return
NULL
;
}
HCERTSTORE
WINAPI
CertOpenStore
(
LPCSTR
lpszStoreProvider
,
DWORD
dwMsgAndCertEncodingType
,
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
...
...
@@ -1743,6 +1791,12 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
case
(
int
)
CERT_STORE_PROV_REG
:
openFunc
=
CRYPT_RegOpenStore
;
break
;
case
(
int
)
CERT_STORE_PROV_FILENAME_A
:
openFunc
=
CRYPT_FileNameOpenStoreA
;
break
;
case
(
int
)
CERT_STORE_PROV_FILENAME_W
:
openFunc
=
CRYPT_FileNameOpenStoreW
;
break
;
case
(
int
)
CERT_STORE_PROV_COLLECTION
:
openFunc
=
CRYPT_CollectionOpenStore
;
break
;
...
...
@@ -1758,6 +1812,9 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
case
(
int
)
CERT_STORE_PROV_SYSTEM_REGISTRY_W
:
openFunc
=
CRYPT_SysRegOpenStoreW
;
break
;
case
(
int
)
CERT_STORE_PROV_PHYSICAL_W
:
openFunc
=
CRYPT_PhysOpenStoreW
;
break
;
default:
if
(
LOWORD
(
lpszStoreProvider
))
FIXME
(
"unimplemented type %d
\n
"
,
LOWORD
(
lpszStoreProvider
));
...
...
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