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

Function statusIs

app/src/Licensing/OfflineSelfTest.cpp:80–87  ·  view source on GitHub ↗

* @brief Verifies a vector and returns whether it produced the expected status. */

Source from the content-addressed store, hash-verified

78 * @brief Verifies a vector and returns whether it produced the expected status.
79 */
80[[nodiscard]] static bool statusIs(const QByteArray& framed,
81 const QString& machine,
82 qint64 nowSecs,
83 Licensing::CertStatus expected)
84{
85 Licensing::CertificateFields fields;
86 return Licensing::verifyCertificate(framed, kTestPublicKey, machine, nowSecs, fields) == expected;
87}
88
89//--------------------------------------------------------------------------------------------------
90// Verifier vectors

Callers 1

runVerifierChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected