diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-27 00:19:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-15 10:59:34 +0200 |
| commit | d23abb4b3fef1e2497969b0909c736d0541b1091 (patch) | |
| tree | dfc4f439120ebaccdd436dddf0c2a63998f473b0 /src/verify.cc | |
| parent | 482a757103731501b22836b8c669d572ae3ab769 (diff) | |
Add OK note when the CPL hash in the PKL is right.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index 167a7d8b..9460bc62 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1604,6 +1604,8 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl) cpl->file().get() ).set_calculated_hash(calculated_cpl_hash).set_reference_hash(*h) ); + } else { + context.ok(VerificationNote::Code::MATCHING_CPL_HASHES); } /* Check that any PKL with a single CPL has its AnnotationText the same as the CPL's ContentTitleText */ @@ -1915,6 +1917,8 @@ dcp::note_to_string (VerificationNote note) switch (note.code()) { case VerificationNote::Code::FAILED_READ: return *note.note(); + case VerificationNote::Code::MATCHING_CPL_HASHES: + return "The hash of the CPL in the PKL matches the CPL file."; case VerificationNote::Code::MISMATCHED_CPL_HASHES: return String::compose("The hash (%1) of the CPL (%2) in the PKL does not agree with the CPL file (%3).", note.reference_hash().get(), note.cpl_id().get(), note.calculated_hash().get()); case VerificationNote::Code::INVALID_PICTURE_FRAME_RATE: |
