aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshkeycreationdialog.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2018-11-20 16:44:42 +0100
committerChristian Kandeler <[email protected]>2018-11-22 09:25:18 +0000
commitfe8a3727735f1e6cf9414999ff5103520b1a56f9 (patch)
tree3a823e0e08c3d7f52145b65260cf286dce1ca3b3 /src/libs/ssh/sshkeycreationdialog.cpp
parenteac0ab4974454af5a4b7d2c77c13025fba9be597 (diff)
SSH: Do not offer to create DSA keys anymore
These are no longer considered secure, and newer versions of OpenSSH do not accept them by default. Change-Id: Ic6d605bf012d46a959aa8c888ef6ec16806eb450 Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/libs/ssh/sshkeycreationdialog.cpp')
-rw-r--r--src/libs/ssh/sshkeycreationdialog.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp
index a720e7b3adc..21d51145994 100644
--- a/src/libs/ssh/sshkeycreationdialog.cpp
+++ b/src/libs/ssh/sshkeycreationdialog.cpp
@@ -54,8 +54,6 @@ SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent)
connect(m_ui->rsa, &QRadioButton::toggled,
this, &SshKeyCreationDialog::keyTypeChanged);
- connect(m_ui->dsa, &QRadioButton::toggled,
- this, &SshKeyCreationDialog::keyTypeChanged);
connect(m_ui->privateKeyFileButton, &QPushButton::clicked,
this, &SshKeyCreationDialog::handleBrowseButtonClicked);
connect(m_ui->generateButton, &QPushButton::clicked,
@@ -77,8 +75,6 @@ void SshKeyCreationDialog::keyTypeChanged()
keySizes << QLatin1String("1024") << QLatin1String("2048") << QLatin1String("4096");
else if (m_ui->ecdsa->isChecked())
keySizes << QLatin1String("256") << QLatin1String("384") << QLatin1String("521");
- else if (m_ui->dsa->isChecked())
- keySizes << QLatin1String("1024");
m_ui->comboBox->addItems(keySizes);
if (!keySizes.isEmpty())
m_ui->comboBox->setCurrentIndex(0);
@@ -91,8 +87,7 @@ void SshKeyCreationDialog::generateKeys()
return;
const SshKeyGenerator::KeyType keyType = m_ui->rsa->isChecked()
- ? SshKeyGenerator::Rsa : m_ui->dsa->isChecked()
- ? SshKeyGenerator::Dsa : SshKeyGenerator::Ecdsa;
+ ? SshKeyGenerator::Rsa : SshKeyGenerator::Ecdsa;
if (!m_keyGenerator)
m_keyGenerator = new SshKeyGenerator;