Changeset View
Changeset View
Standalone View
Standalone View
core/backends/lan/lanlinkprovider.cpp
Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Line(s) | 418 | { | |||
---|---|---|---|---|---|
420 | // Top 3 ciphers are for new Android devices, botton two are for old Android devices | 420 | // Top 3 ciphers are for new Android devices, botton two are for old Android devices | ||
421 | // FIXME : These cipher suites should be checked whether they are supported or not on device | 421 | // FIXME : These cipher suites should be checked whether they are supported or not on device | ||
422 | QList<QSslCipher> socketCiphers; | 422 | QList<QSslCipher> socketCiphers; | ||
423 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES256-GCM-SHA384"))); | 423 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES256-GCM-SHA384"))); | ||
424 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES128-GCM-SHA256"))); | 424 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES128-GCM-SHA256"))); | ||
425 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-RSA-AES128-SHA"))); | 425 | socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-RSA-AES128-SHA"))); | ||
426 | socketCiphers.append(QSslCipher(QStringLiteral("RC4-SHA"))); | 426 | socketCiphers.append(QSslCipher(QStringLiteral("RC4-SHA"))); | ||
427 | socketCiphers.append(QSslCipher(QStringLiteral("RC4-MD5"))); | 427 | socketCiphers.append(QSslCipher(QStringLiteral("RC4-MD5"))); | ||
428 | socketCiphers.append(QSslCipher(QStringLiteral("DHE-RSA-AES256-SHA"))); | ||||
428 | 429 | | |||
429 | // Configure for ssl | 430 | // Configure for ssl | ||
430 | QSslConfiguration sslConfig; | 431 | QSslConfiguration sslConfig; | ||
431 | sslConfig.setCiphers(socketCiphers); | 432 | sslConfig.setCiphers(socketCiphers); | ||
432 | sslConfig.setProtocol(QSsl::TlsV1_0); | 433 | sslConfig.setProtocol(QSsl::TlsV1_0); | ||
433 | 434 | | |||
434 | socket->setSslConfiguration(sslConfig); | 435 | socket->setSslConfiguration(sslConfig); | ||
435 | socket->setLocalCertificate(KdeConnectConfig::instance()->certificate()); | 436 | socket->setLocalCertificate(KdeConnectConfig::instance()->certificate()); | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |