summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4d51726)
This implementation uses one cert for all users, which is not correct.
Reverting this until we have found a sane solution to allow key-based auth
in a multi-user setting.
This reverts commit
e91445dfdb33704e5daafa8631bc9a1419251c1c.
connect(network, SIGNAL(autoReconnectRetriesSet(quint16)), this, SLOT(autoReconnectSettingsChanged()));
#ifndef QT_NO_OPENSSL
connect(network, SIGNAL(autoReconnectRetriesSet(quint16)), this, SLOT(autoReconnectSettingsChanged()));
#ifndef QT_NO_OPENSSL
- {
- QFile certFile(quasselDir().absolutePath() + "/quasselClientCert.pem");
- certFile.open(QIODevice::ReadOnly);
- QSslCertificate cert(&certFile);
- certFile.close();
-
- certFile.open(QIODevice::ReadOnly);
- QSslKey key(&certFile, QSsl::Rsa);
- certFile.close();
-
- if ( !cert.isNull() && cert.isValid() &&
- !key.isNull() ) {
- socket.setLocalCertificate(cert);
- socket.setPrivateKey(key);
- }
- }
-
connect(&socket, SIGNAL(encrypted()), this, SLOT(socketEncrypted()));
connect(&socket, SIGNAL(sslErrors(const QList<QSslError> &)), this, SLOT(sslErrors(const QList<QSslError> &)));
#endif
connect(&socket, SIGNAL(encrypted()), this, SLOT(socketEncrypted()));
connect(&socket, SIGNAL(sslErrors(const QList<QSslError> &)), this, SLOT(sslErrors(const QList<QSslError> &)));
#endif