* @brief Verifies a vector and returns whether it produced the expected status. */
| 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 |