summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2012-04-03 20:36:29 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2012-04-03 20:36:29 (GMT)
commitfff63e22bf32dfe6e771e188f44c1a9695a40418 (patch)
tree4d2cbb9d9fad45018b8a3eb264a96fee07e1f805
parent900190da2fb900587089fa3b08e6bb6aff251138 (diff)
use selected key size for both primary and subkey lengthv4.8.3
Otherwise GnuPG would use it's default size for the subkey, leading to keys with sizes like 4096/1024, which would be rather unexpected for the user.
-rw-r--r--transactions/kgpggeneratekey.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/transactions/kgpggeneratekey.cpp b/transactions/kgpggeneratekey.cpp
index 0033103..eef74bc 100644
--- a/transactions/kgpggeneratekey.cpp
+++ b/transactions/kgpggeneratekey.cpp
@@ -83,8 +83,12 @@ KGpgGenerateKey::postStart()
return;
}
+ const QByteArray keylen = QByteArray::number(m_size);
+
keymessage.append("\nKey-Length: ");
- keymessage.append(QByteArray::number(m_size));
+ keymessage.append(keylen);
+ keymessage.append("\nSubkey-Length: ");
+ keymessage.append(keylen);
keymessage.append("\nName-Real: ");
keymessage.append(m_name.toUtf8());
if (!m_email.isEmpty()) {