Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
a7096f96
Commit
a7096f96
authored
16 years ago
by
Juan Lang
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cryptui: Add support for exporting a serialized store from CryptUIWizExport.
parent
072b6065
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/cryptui/cryptui_En.rc
+1
-0
1 addition, 0 deletions
dlls/cryptui/cryptui_En.rc
dlls/cryptui/cryptuires.h
+8
-7
8 additions, 7 deletions
dlls/cryptui/cryptuires.h
dlls/cryptui/main.c
+22
-0
22 additions, 0 deletions
dlls/cryptui/main.c
with
31 additions
and
7 deletions
dlls/cryptui/cryptui_En.rc
+
1
−
0
View file @
a7096f96
...
...
@@ -153,6 +153,7 @@ STRINGTABLE DISCARDABLE
IDS_EXPORT_FILTER_CTL "Certificate Trust List (*.stl)"
IDS_EXPORT_FILTER_CMS "CMS/PKCS #7 Messages (*.p7b)"
IDS_EXPORT_FILTER_PFX "Personal Information Exchange (*.pfx)"
IDS_EXPORT_FILTER_SERIALIZED_CERT_STORE "Serialized Certificate Store (*.sst)"
IDS_EXPORT_FORMAT "File Format"
IDS_EXPORT_INCLUDE_CHAIN "Include all certificates in certificate path"
IDS_EXPORT_KEYS "Export keys"
...
...
This diff is collapsed.
Click to expand it.
dlls/cryptui/cryptuires.h
+
8
−
7
View file @
a7096f96
...
...
@@ -152,13 +152,14 @@
#define IDS_EXPORT_FILTER_CTL 1209
#define IDS_EXPORT_FILTER_CMS 1210
#define IDS_EXPORT_FILTER_PFX 1211
#define IDS_EXPORT_FORMAT 1212
#define IDS_EXPORT_INCLUDE_CHAIN 1213
#define IDS_EXPORT_KEYS 1214
#define IDS_YES 1215
#define IDS_NO 1216
#define IDS_EXPORT_SUCCEEDED 1217
#define IDS_EXPORT_FAILED 1218
#define IDS_EXPORT_FILTER_SERIALIZED_CERT_STORE 1212
#define IDS_EXPORT_FORMAT 1213
#define IDS_EXPORT_INCLUDE_CHAIN 1214
#define IDS_EXPORT_KEYS 1215
#define IDS_YES 1216
#define IDS_NO 1217
#define IDS_EXPORT_SUCCEEDED 1218
#define IDS_EXPORT_FAILED 1219
#define IDD_GENERAL 100
#define IDD_DETAIL 101
...
...
This diff is collapsed.
Click to expand it.
dlls/cryptui/main.c
+
22
−
0
View file @
a7096f96
...
...
@@ -5633,6 +5633,7 @@ static LPWSTR export_append_extension(struct ExportWizData *data,
static
const
WCHAR
ctl
[]
=
{
'.'
,
'c'
,
't'
,
'l'
,
0
};
static
const
WCHAR
p7b
[]
=
{
'.'
,
'p'
,
'7'
,
'b'
,
0
};
static
const
WCHAR
pfx
[]
=
{
'.'
,
'p'
,
'f'
,
'x'
,
0
};
static
const
WCHAR
sst
[]
=
{
'.'
,
's'
,
's'
,
't'
,
0
};
LPCWSTR
extension
;
LPWSTR
dot
;
BOOL
appendExtension
;
...
...
@@ -5654,6 +5655,9 @@ static LPWSTR export_append_extension(struct ExportWizData *data,
case
CRYPTUI_WIZ_EXPORT_CTL_CONTEXT
:
extension
=
ctl
;
break
;
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
extension
=
sst
;
break
;
default:
extension
=
cer
;
}
...
...
@@ -5760,6 +5764,7 @@ static const WCHAR export_filter_crl[] = { '*','.','c','r','l',0 };
static
const
WCHAR
export_filter_ctl
[]
=
{
'*'
,
'.'
,
's'
,
't'
,
'l'
,
0
};
static
const
WCHAR
export_filter_cms
[]
=
{
'*'
,
'.'
,
'p'
,
'7'
,
'b'
,
0
};
static
const
WCHAR
export_filter_pfx
[]
=
{
'*'
,
'.'
,
'p'
,
'f'
,
'x'
,
0
};
static
const
WCHAR
export_filter_sst
[]
=
{
'*'
,
'.'
,
's'
,
's'
,
't'
,
0
};
static
WCHAR
*
make_export_file_filter
(
DWORD
exportFormat
,
DWORD
subjectChoice
)
{
...
...
@@ -5792,6 +5797,10 @@ static WCHAR *make_export_file_filter(DWORD exportFormat, DWORD subjectChoice)
baseID
=
IDS_EXPORT_FILTER_CTL
;
filterStr
=
export_filter_ctl
;
break
;
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
baseID
=
IDS_EXPORT_FILTER_SERIALIZED_CERT_STORE
;
filterStr
=
export_filter_sst
;
break
;
default:
baseID
=
IDS_EXPORT_FILTER_CERT
;
filterStr
=
export_filter_cert
;
...
...
@@ -5968,6 +5977,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
:
/* do nothing */
break
;
default:
...
...
@@ -6011,6 +6021,9 @@ static void show_export_details(HWND lv, struct ExportWizData *data)
case
CRYPTUI_WIZ_EXPORT_CTL_CONTEXT
:
contentID
=
IDS_EXPORT_FILTER_CTL
;
break
;
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
contentID
=
IDS_EXPORT_FILTER_SERIALIZED_CERT_STORE
;
break
;
default:
switch
(
data
->
contextInfo
.
dwExportFormat
)
{
...
...
@@ -6132,6 +6145,12 @@ static BOOL save_cms(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
return
ret
;
}
static
BOOL
save_serialized_store
(
HANDLE
file
,
HCERTSTORE
store
)
{
return
CertSaveStore
(
store
,
PKCS_7_ASN_ENCODING
|
X509_ASN_ENCODING
,
CERT_STORE_SAVE_AS_STORE
,
CERT_STORE_SAVE_TO_FILE
,
file
,
0
);
}
static
BOOL
do_export
(
HANDLE
file
,
PCCRYPTUI_WIZ_EXPORT_INFO
pExportInfo
,
PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
pContextInfo
)
{
...
...
@@ -6154,6 +6173,9 @@ static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo,
pExportInfo
->
u
.
pCTLContext
->
pbCtlEncoded
,
pExportInfo
->
u
.
pCTLContext
->
cbCtlEncoded
);
break
;
case
CRYPTUI_WIZ_EXPORT_CERT_STORE
:
ret
=
save_serialized_store
(
file
,
pExportInfo
->
u
.
hCertStore
);
break
;
default:
switch
(
pContextInfo
->
dwExportFormat
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment