equal
deleted
inserted
replaced
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; |