MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / sslProtocol

Method sslProtocol

app/src/MQTT/Publisher.cpp:948–959  ·  view source on GitHub ↗

* @brief Returns the selected SSL protocol index. */

Source from the content-addressed store, hash-verified

946 * @brief Returns the selected SSL protocol index.
947 */
948quint8 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.

Callers 3

publisherGetConfigMethod · 0.45
subscriberGetConfigMethod · 0.45
buildMqttSslSectionMethod · 0.45

Calls 2

beginMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected