From 0d31c86d6dfad9f437f5613d41cace9cc5928474 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 8 Jan 2024 00:40:25 +0100 Subject: Add OK note when PKL and CPL annotation texts match. --- src/verify.cc | 4 ++++ src/verify.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 0dd8f75e..17b751e6 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1643,6 +1643,8 @@ verify_cpl(Context& context, shared_ptr cpl) if (required_annotation_text && i->annotation_text() != required_annotation_text) { context.bv21_error(VerificationNote::Code::MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL, i->id(), i->file().get()); + } else { + context.ok(VerificationNote::Code::MATCHING_PKL_ANNOTATION_TEXT_WITH_CPL); } } @@ -2089,6 +2091,8 @@ dcp::note_to_string (VerificationNote note) return String::compose("The PKL %1, which has encrypted content, is not signed.", note.note().get()); case VerificationNote::Code::MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL: return String::compose("The PKL %1 has only one CPL but its does not match the CPL's .", note.note().get()); + case VerificationNote::Code::MATCHING_PKL_ANNOTATION_TEXT_WITH_CPL: + return "The PKL and CPL annotation texts match."; case VerificationNote::Code::ALL_ENCRYPTED: return "All the assets are encrypted."; case VerificationNote::Code::NONE_ENCRYPTED: diff --git a/src/verify.h b/src/verify.h index 70cdff3d..df515d19 100644 --- a/src/verify.h +++ b/src/verify.h @@ -343,6 +343,7 @@ public: * file contains the PKL filename */ MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL, + MATCHING_PKL_ANNOTATION_TEXT_WITH_CPL, /** All content is encrypted */ ALL_ENCRYPTED, /** No content is encrypted */ -- cgit v1.2.3