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

Method peerVerifyMode

app/src/MQTT/Publisher.cpp:964–975  ·  view source on GitHub ↗

* @brief Returns the selected SSL peer-verification mode index. */

Source from the content-addressed store, hash-verified

962 * @brief Returns the selected SSL peer-verification mode index.
963 */
964quint8 MQTT::Publisher::peerVerifyMode() const noexcept
965{
966 quint8 index = 0;
967 for (auto i = m_peerVerifyModes.begin(); i != m_peerVerifyModes.end(); ++i) {
968 if (i.value() == m_peerVerifyMode)
969 break;
970
971 ++index;
972 }
973
974 return index;
975}
976
977/**
978 * @brief Returns the broker TCP port.

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