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

Method writeSettings

app/src/Licensing/OfflineLicense.cpp:295–300  ·  view source on GitHub ↗

* @brief Persists the verified certificate, encrypted, for the next launch. */

Source from the content-addressed store, hash-verified

293 * @brief Persists the verified certificate, encrypted, for the next launch.
294 */
295void Licensing::OfflineLicense::writeSettings(const QByteArray& framedCert)
296{
297 m_settings.beginGroup("offlineLicense");
298 m_settings.setValue("cert", m_simpleCrypt.encryptToString(framedCert));
299 m_settings.endGroup();
300}
301
302/**
303 * @brief Restores the offline token when no valid commercial token is in effect

Callers

nothing calls this directly

Calls 1

encryptToStringMethod · 0.80

Tested by

no test coverage detected