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

Method runOfflineSelfTest

app/src/Licensing/OfflineSelfTest.cpp:169–180  ·  view source on GitHub ↗

* @brief Runs headless offline-certificate verifier vectors; returns 0 on success. */

Source from the content-addressed store, hash-verified

167 * @brief Runs headless offline-certificate verifier vectors; returns 0 on success.
168 */
169int Licensing::runOfflineSelfTest()
170{
171 qInfo().noquote() << "[offline-license] running self-test vectors";
172 const int fails = runVerifierChecks() + runClockRewindCheck();
173
174 if (fails == 0)
175 qInfo().noquote() << "[offline-license] all checks passed";
176 else
177 qCritical().noquote() << "[offline-license]" << fails << "check(s) failed";
178
179 return fails == 0 ? 0 : 1;
180}

Callers

nothing calls this directly

Calls 2

runVerifierChecksFunction · 0.85
runClockRewindCheckFunction · 0.85

Tested by

no test coverage detected