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
bc37988d
Commit
bc37988d
authored
Aug 16, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use public type and APIs for memory stores wherever possible.
parent
afc50ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
store.c
dlls/crypt32/store.c
+23
-20
No files found.
dlls/crypt32/store.c
View file @
bc37988d
...
...
@@ -156,31 +156,31 @@ typedef struct _WINE_HASH_TO_DELETE
typedef
struct
_WINE_REGSTOREINFO
{
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
PWINECRYPT_CERTSTORE
memStore
;
HKEY
key
;
BOOL
dirty
;
CRITICAL_SECTION
cs
;
struct
list
certsToDelete
;
struct
list
crlsToDelete
;
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
HCERTSTORE
memStore
;
HKEY
key
;
BOOL
dirty
;
CRITICAL_SECTION
cs
;
struct
list
certsToDelete
;
struct
list
crlsToDelete
;
}
WINE_REGSTOREINFO
,
*
PWINE_REGSTOREINFO
;
typedef
struct
_WINE_FILESTOREINFO
{
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
PWINECRYPT_
CERTSTORE
memStore
;
HANDLE
file
;
BOOL
dirty
;
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
H
CERTSTORE
memStore
;
HANDLE
file
;
BOOL
dirty
;
}
WINE_FILESTOREINFO
,
*
PWINE_FILESTOREINFO
;
typedef
struct
_WINE_MSGSTOREINFO
{
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
PWINECRYPT_
CERTSTORE
memStore
;
HCRYPTMSG
msg
;
DWORD
dwOpenFlags
;
HCRYPTPROV
cryptProv
;
H
CERTSTORE
memStore
;
HCRYPTMSG
msg
;
}
WINE_MSGSTOREINFO
,
*
PWINE_MSGSTOREINFO
;
typedef
struct
_WINE_STORE_LIST_ENTRY
...
...
@@ -1421,7 +1421,8 @@ static WINECRYPT_CERTSTORE *CRYPT_RegOpenStore(HCRYPTPROV hCryptProv,
{
PWINECRYPT_CERTSTORE
memStore
;
memStore
=
CRYPT_MemOpenStore
(
hCryptProv
,
dwFlags
,
NULL
);
memStore
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
hCryptProv
,
CERT_STORE_CREATE_NEW_FLAG
,
NULL
);
if
(
memStore
)
{
PWINE_REGSTOREINFO
regInfo
=
CryptMemAlloc
(
...
...
@@ -1827,7 +1828,8 @@ static PWINECRYPT_CERTSTORE CRYPT_FileOpenStore(HCRYPTPROV hCryptProv,
{
PWINECRYPT_CERTSTORE
memStore
;
memStore
=
CRYPT_MemOpenStore
(
hCryptProv
,
dwFlags
,
NULL
);
memStore
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
hCryptProv
,
CERT_STORE_CREATE_NEW_FLAG
,
NULL
);
if
(
memStore
)
{
if
(
CRYPT_ReadSerializedFile
(
file
,
memStore
))
...
...
@@ -1963,7 +1965,8 @@ static PWINECRYPT_CERTSTORE CRYPT_MsgOpenStore(HCRYPTPROV hCryptProv,
TRACE
(
"(%ld, %08x, %p)
\n
"
,
hCryptProv
,
dwFlags
,
pvPara
);
memStore
=
CRYPT_MemOpenStore
(
hCryptProv
,
dwFlags
,
NULL
);
memStore
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
hCryptProv
,
CERT_STORE_CREATE_NEW_FLAG
,
NULL
);
if
(
memStore
)
{
BOOL
ret
;
...
...
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