is there a bug

Yuri Samoilenko kinnalru at gmail.com
Thu Jan 16 16:09:24 UTC 2014


in device.cpp I see this code

=======
        if (wantsPair) {

            //Retrieve their public key
            const QString& key = np.get<QString>("publicKey");
            m_publicKey = QCA::RSAPublicKey::fromPEM(key); // <=== what is THIS?
            if (m_publicKey.isNull()) {
                kDebug(kdeconnect_kded()) << "ERROR decoding key";
                if (m_pairStatus == Device::Requested) {
                    m_pairStatus = Device::NotPaired;
                    pairingTimer.stop();
                }
                Q_EMIT pairingFailed(i18n("Received incorrect key"));
                return;
            }
=======

Here ther m_publicKey replaced with one from device? May be we must
create tmp public key:

======
QCA::PublicKey publicKey = QCA::RSAPublicKey::fromPEM(key);
if (publicKey.isNull()) {
.....
======


More information about the KDEConnect mailing list