* @brief Sets the SSL protocol by index. */
| 1521 | * @brief Sets the SSL protocol by index. |
| 1522 | */ |
| 1523 | void MQTT::Publisher::setSslProtocol(const quint8 protocol) |
| 1524 | { |
| 1525 | quint8 index = 0; |
| 1526 | for (auto i = m_sslProtocols.begin(); i != m_sslProtocols.end(); ++i) { |
| 1527 | if (index == protocol) { |
| 1528 | if (i.value() == m_sslProtocol) |
| 1529 | return; |
| 1530 | |
| 1531 | m_sslProtocol = i.value(); |
| 1532 | markConfigChanged(); |
| 1533 | return; |
| 1534 | } |
| 1535 | |
| 1536 | ++index; |
| 1537 | } |
| 1538 | } |
| 1539 | |
| 1540 | /** |
| 1541 | * @brief Sets the SSL peer-verification mode by index. |
no test coverage detected