* @brief Returns the selected SSL protocol index. */
| 946 | * @brief Returns the selected SSL protocol index. |
| 947 | */ |
| 948 | quint8 MQTT::Publisher::sslProtocol() const noexcept |
| 949 | { |
| 950 | quint8 index = 0; |
| 951 | for (auto i = m_sslProtocols.begin(); i != m_sslProtocols.end(); ++i) { |
| 952 | if (i.value() == m_sslProtocol) |
| 953 | break; |
| 954 | |
| 955 | ++index; |
| 956 | } |
| 957 | |
| 958 | return index; |
| 959 | } |
| 960 | |
| 961 | /** |
| 962 | * @brief Returns the selected SSL peer-verification mode index. |
no test coverage detected