src/network/ssl/qsslsocket.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 14 c0432d11811c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
  1107 */
  1107 */
  1108 void QSslSocket::setCiphers(const QString &ciphers)
  1108 void QSslSocket::setCiphers(const QString &ciphers)
  1109 {
  1109 {
  1110     Q_D(QSslSocket);
  1110     Q_D(QSslSocket);
  1111     d->configuration.ciphers.clear();
  1111     d->configuration.ciphers.clear();
  1112     foreach (QString cipherName, ciphers.split(QLatin1String(":"),QString::SkipEmptyParts)) {
  1112     foreach (const QString &cipherName, ciphers.split(QLatin1String(":"),QString::SkipEmptyParts)) {
  1113         for (int i = 0; i < 3; ++i) {
  1113         for (int i = 0; i < 3; ++i) {
  1114             // ### Crude
  1114             // ### Crude
  1115             QSslCipher cipher(cipherName, QSsl::SslProtocol(i));
  1115             QSslCipher cipher(cipherName, QSsl::SslProtocol(i));
  1116             if (!cipher.isNull())
  1116             if (!cipher.isNull())
  1117                 d->configuration.ciphers << cipher;
  1117                 d->configuration.ciphers << cipher;