Remove specific list of ciphers
We can let the system use the full list when negotiating since we no longer support Android < 5.0
This commit is contained in:
parent
3f03af9383
commit
107dfb9e3d
1 changed files with 0 additions and 7 deletions
|
@ -546,15 +546,8 @@ void LanLinkProvider::deviceLinkDestroyed(QObject *destroyedDeviceLink)
|
||||||
|
|
||||||
void LanLinkProvider::configureSslSocket(QSslSocket *socket, const QString &deviceId, bool isDeviceTrusted)
|
void LanLinkProvider::configureSslSocket(QSslSocket *socket, const QString &deviceId, bool isDeviceTrusted)
|
||||||
{
|
{
|
||||||
// Setting supported ciphers manually, to match those on Android (FIXME: Test if this can be left unconfigured and still works for Android 4)
|
|
||||||
QList<QSslCipher> socketCiphers;
|
|
||||||
socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES256-GCM-SHA384")));
|
|
||||||
socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES128-GCM-SHA256")));
|
|
||||||
socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-RSA-AES128-SHA")));
|
|
||||||
|
|
||||||
// Configure for ssl
|
// Configure for ssl
|
||||||
QSslConfiguration sslConfig;
|
QSslConfiguration sslConfig;
|
||||||
sslConfig.setCiphers(socketCiphers);
|
|
||||||
sslConfig.setLocalCertificate(KdeConnectConfig::instance().certificate());
|
sslConfig.setLocalCertificate(KdeConnectConfig::instance().certificate());
|
||||||
|
|
||||||
QFile privateKeyFile(KdeConnectConfig::instance().privateKeyPath());
|
QFile privateKeyFile(KdeConnectConfig::instance().privateKeyPath());
|
||||||
|
|
Loading…
Reference in a new issue