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

Method saveLastGoodRawId

app/src/Licensing/MachineID.cpp:302–308  ·  view source on GitHub ↗

* @brief Persists the current raw id so a later degraded read can reuse it instead of re-keying. */

Source from the content-addressed store, hash-verified

300 * @brief Persists the current raw id so a later degraded read can reuse it instead of re-keying.
301 */
302void Licensing::MachineID::saveLastGoodRawId(const QString& rawId, const QString& os)
303{
304 m_settings.beginGroup("licensing");
305 m_settings.setValue("lastGoodRawId", lastGoodCrypt().encryptToString(rawId));
306 m_settings.setValue("lastGoodOs", os);
307 m_settings.endGroup();
308}
309
310//--------------------------------------------------------------------------------------------------
311// Information gathering and processing

Callers

nothing calls this directly

Calls 1

encryptToStringMethod · 0.80

Tested by

no test coverage detected