Added check for RSA support in QCA.
It was crashing KDED for some users when not present.
This commit is contained in:
parent
5cac14bc96
commit
fc45b64362
1 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "networkpackage.h"
|
||||
|
||||
#include "backends/lan/lanlinkprovider.h"
|
||||
#include "backends/online/onlinelinkprovider.h"
|
||||
#include "backends/loopback/loopbacklinkprovider.h"
|
||||
|
||||
#include <QUuid>
|
||||
|
@ -51,6 +52,14 @@ Daemon::Daemon(QObject *parent, const QList<QVariant>&)
|
|||
qDebug() << "My id:" << uuid;
|
||||
}
|
||||
|
||||
//qDebug() << "QCA supported capabilities:" << QCA::supportedFeatures().join(",");
|
||||
if(!QCA::isSupported("rsa")) {
|
||||
//TODO: Maybe display this in a more visible way?
|
||||
qWarning() << "Error: KDE Connect could not find support for RSA in your QCA installation, if your distribution provides"
|
||||
<< "separate packages for QCA-ossl and QCA-gnupg plugins, make sure you have them installed and try again";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!config->group("myself").hasKey("privateKey") || !config->group("myself").hasKey("publicKey")) {
|
||||
|
||||
//http://delta.affinix.com/docs/qca/rsatest_8cpp-example.html
|
||||
|
|
Loading…
Reference in a new issue