Commit 654048de authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

fix generation of DSA/ElGamal keys with GnuPG 1.x

The name "ELG" for ElGamal keys only works with 2.x. Use ELG-E which works with
both 1.4 and 2.0.18. It will not work with 2.0.0, but given that it's only that
single version and it is more than 5 years old I don't care.

parent 7cc05155
......@@ -13,12 +13,13 @@
#include "kgpggeneratekey.h"
#include <gpgproc.h>
#include <kgpginterface.h>
#include <KMessageBox>
#include <KLocale>
#include <QApplication>
#include <kpimutils/email.h>
#include <gpgproc.h>
#include <QApplication>
KGpgGenerateKey::KGpgGenerateKey(QObject *parent, const QString &name, const QString &email, const QString &comment,
const KgpgCore::KgpgKeyAlgo &algorithm, const uint size, const unsigned int expire,
......@@ -75,7 +76,7 @@ KGpgGenerateKey::postStart()
keymessage.append("RSA\nSubkey-Type: RSA");
case KgpgCore::ALGO_DSA_ELGAMAL:
keymessage.append("DSA\nSubkey-Type: ELG");
keymessage.append("DSA\nSubkey-Type: ELG-E");
Q_ASSERT(m_algorithm == KgpgCore::ALGO_RSA);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment