summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-10-04 12:00:51 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-10-04 12:01:02 (GMT)
commit896cac636a3e3c4dad4f4d3cf5707621e3b352c7 (patch)
tree25994fc304ab1fde776b59bbd633f1b727918e3d
parent7f75e67a2d572545ddcd07b9669c1d3ff07629ee (diff)
Fix GnupgKeyParams syntax in DefaultKeyGenerationJob
-rw-r--r--src/kleo/defaultkeygenerationjob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kleo/defaultkeygenerationjob.cpp b/src/kleo/defaultkeygenerationjob.cpp
index c1d9a78..de3335e 100644
--- a/src/kleo/defaultkeygenerationjob.cpp
+++ b/src/kleo/defaultkeygenerationjob.cpp
@@ -86,16 +86,16 @@ GpgME::Error DefaultKeyGenerationJob::start(const QString &email, const QString
{
const QString passphrase = d->passphrase.isNull() ? QStringLiteral("%ask-passphrase") :
d->passphrase.isEmpty() ? QStringLiteral("%no-protection") :
- d->passphrase;
+ QStringLiteral("passphrase: %1").arg(d->passphrase);
const QString args = QStringLiteral("<GnupgKeyParms format=\"internal\">\n"
- "%1\n"
"key-type: RSA\n"
"key-length: 2048\n"
"key-usage: sign\n"
"subkey-type: RSA\n"
"subkey-length: 2048\n"
"subkey-usage: encrypt\n"
+ "%1\n"
"name-email: %2\n"
"name-real: %3\n"
"</GnupgKeyParms>").arg(passphrase, email, name);