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

Method setSslProtocol

app/src/MQTT/Publisher.cpp:1523–1538  ·  view source on GitHub ↗

* @brief Sets the SSL protocol by index. */

Source from the content-addressed store, hash-verified

1521 * @brief Sets the SSL protocol by index.
1522 */
1523void 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.

Callers 3

Calls 2

beginMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected