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
15a8ea6a
Commit
15a8ea6a
authored
Jan 24, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Implement CryptUIWizExport for CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY.
parent
befce84f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
main.c
dlls/cryptui/main.c
+14
-4
No files found.
dlls/cryptui/main.c
View file @
15a8ea6a
...
...
@@ -5978,6 +5978,7 @@ static void show_export_details(HWND lv, struct ExportWizData *data)
case
CRYPTUI_WIZ_EXPORT_CRL_CONTEXT
:
case
CRYPTUI_WIZ_EXPORT_CTL_CONTEXT
:
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
case
CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY
:
/* do nothing */
break
;
default:
...
...
@@ -6076,7 +6077,13 @@ static BOOL save_base64(HANDLE file, const BYTE *pb, DWORD cb)
return
ret
;
}
static
BOOL
save_cms
(
HANDLE
file
,
PCCRYPTUI_WIZ_EXPORT_INFO
pExportInfo
,
static
inline
BOOL
save_store_as_cms
(
HANDLE
file
,
HCERTSTORE
store
)
{
return
CertSaveStore
(
store
,
PKCS_7_ASN_ENCODING
|
X509_ASN_ENCODING
,
CERT_STORE_SAVE_AS_PKCS7
,
CERT_STORE_SAVE_TO_FILE
,
file
,
0
);
}
static
BOOL
save_cert_as_cms
(
HANDLE
file
,
PCCRYPTUI_WIZ_EXPORT_INFO
pExportInfo
,
BOOL
includeChain
)
{
BOOL
ret
;
...
...
@@ -6136,8 +6143,7 @@ static BOOL save_cms(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
ret
=
CertAddCertificateContextToStore
(
store
,
pExportInfo
->
u
.
pCertContext
,
CERT_STORE_ADD_ALWAYS
,
NULL
);
if
(
ret
)
ret
=
CertSaveStore
(
store
,
PKCS_7_ASN_ENCODING
|
X509_ASN_ENCODING
,
CERT_STORE_SAVE_AS_PKCS7
,
CERT_STORE_SAVE_TO_FILE
,
file
,
0
);
ret
=
save_store_as_cms
(
file
,
store
);
CertCloseStore
(
store
,
0
);
}
else
...
...
@@ -6176,6 +6182,9 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
ret
=
save_serialized_store
(
file
,
pExportInfo
->
u
.
hCertStore
);
break
;
case
CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY
:
ret
=
save_store_as_cms
(
file
,
pExportInfo
->
u
.
hCertStore
);
break
;
default:
switch
(
pContextInfo
->
dwExportFormat
)
{
...
...
@@ -6189,7 +6198,8 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
pExportInfo
->
u
.
pCertContext
->
cbCertEncoded
);
break
;
case
CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7
:
ret
=
save_cms
(
file
,
pExportInfo
,
pContextInfo
->
fExportChain
);
ret
=
save_cert_as_cms
(
file
,
pExportInfo
,
pContextInfo
->
fExportChain
);
break
;
case
CRYPTUI_WIZ_EXPORT_FORMAT_PFX
:
FIXME
(
"unimplemented for PFX
\n
"
);
...
...
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