Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
7c2e3741
Commit
7c2e3741
authored
Sep 06, 2022
by
Ingo Klöcker
Committed by
Ingo Klöcker
Sep 06, 2022
Browse files
Tell gpgsm to export the secret key as PKCS#12
GnuPG-bug-id: 6189
parent
4c2e7317
Pipeline
#228373
passed with stage
in 3 minutes and 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/commands/exportsecretkeycommand.cpp
View file @
7c2e3741
...
...
@@ -30,6 +30,8 @@
#include
<QFileInfo>
#include
<QStandardPaths>
#include
<gpgme++/context.h>
#include
<algorithm>
#include
<memory>
#include
<vector>
...
...
@@ -207,6 +209,10 @@ std::unique_ptr<QGpgME::ExportJob> ExportSecretKeyCommand::Private::startExportJ
std
::
unique_ptr
<
QGpgME
::
ExportJob
>
exportJob
{
backend
->
secretKeyExportJob
(
armor
)};
Q_ASSERT
(
exportJob
);
if
(
key
.
protocol
()
==
GpgME
::
CMS
)
{
exportJob
->
setExportFlags
(
GpgME
::
Context
::
ExportPKCS12
);
}
connect
(
exportJob
.
get
(),
&
QGpgME
::
ExportJob
::
result
,
q
,
[
this
](
const
GpgME
::
Error
&
err
,
const
QByteArray
&
keyData
)
{
onExportJobResult
(
err
,
keyData
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment