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
79cd672c
Commit
79cd672c
authored
May 14, 2007
by
Juan Lang
Committed by
Alexandre Julliard
May 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use public functions to get store access state.
parent
4c6988e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
22 deletions
+16
-22
cert.c
dlls/crypt32/cert.c
+5
-2
crl.c
dlls/crypt32/crl.c
+5
-2
crypt32_private.h
dlls/crypt32/crypt32_private.h
+0
-2
store.c
dlls/crypt32/store.c
+6
-16
No files found.
dlls/crypt32/cert.c
View file @
79cd672c
...
...
@@ -296,8 +296,11 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
}
else
{
*
(
DWORD
*
)
pvData
=
CertStore_GetAccessState
(
pCertContext
->
hCertStore
);
if
(
pCertContext
->
hCertStore
)
ret
=
CertGetStoreProperty
(
pCertContext
->
hCertStore
,
dwPropId
,
pvData
,
pcbData
);
else
*
(
DWORD
*
)
pvData
=
0
;
ret
=
TRUE
;
}
break
;
...
...
dlls/crypt32/crl.c
View file @
79cd672c
...
...
@@ -368,8 +368,11 @@ BOOL WINAPI CertGetCRLContextProperty(PCCRL_CONTEXT pCRLContext,
}
else
{
*
(
DWORD
*
)
pvData
=
CertStore_GetAccessState
(
pCRLContext
->
hCertStore
);
if
(
pCRLContext
->
hCertStore
)
ret
=
CertGetStoreProperty
(
pCRLContext
->
hCertStore
,
dwPropId
,
pvData
,
pcbData
);
else
*
(
DWORD
*
)
pvData
=
0
;
ret
=
TRUE
;
}
break
;
...
...
dlls/crypt32/crypt32_private.h
View file @
79cd672c
...
...
@@ -120,8 +120,6 @@ BOOL CRYPT_ReadSerializedFile(HANDLE file, HCERTSTORE store);
*/
void
CRYPT_FixKeyProvInfoPointers
(
PCRYPT_KEY_PROV_INFO
info
);
DWORD
CertStore_GetAccessState
(
HCERTSTORE
hCertStore
);
/**
* Context functions
*/
...
...
dlls/crypt32/store.c
View file @
79cd672c
...
...
@@ -2098,21 +2098,6 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
return
TRUE
;
}
DWORD
CertStore_GetAccessState
(
HCERTSTORE
hCertStore
)
{
DWORD
state
=
0
;
if
(
hCertStore
)
{
PWINECRYPT_CERTSTORE
store
=
(
PWINECRYPT_CERTSTORE
)
hCertStore
;
if
(
store
->
type
!=
StoreTypeMem
&&
!
(
store
->
dwOpenFlags
&
CERT_STORE_READONLY_FLAG
))
state
|=
CERT_ACCESS_STATE_WRITE_PERSIST_FLAG
;
}
return
state
;
}
#define CertContext_CopyProperties(to, from) \
Context_CopyProperties((to), (from), sizeof(CERT_CONTEXT))
...
...
@@ -2508,7 +2493,12 @@ BOOL WINAPI CertGetStoreProperty(HCERTSTORE hCertStore, DWORD dwPropId,
}
else
{
*
(
DWORD
*
)
pvData
=
CertStore_GetAccessState
(
hCertStore
);
DWORD
state
=
0
;
if
(
store
->
type
!=
StoreTypeMem
&&
!
(
store
->
dwOpenFlags
&
CERT_STORE_READONLY_FLAG
))
state
|=
CERT_ACCESS_STATE_WRITE_PERSIST_FLAG
;
*
(
DWORD
*
)
pvData
=
state
;
ret
=
TRUE
;
}
break
;
...
...
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