summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-08 00:40:25 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-15 10:59:34 +0200
commit0d31c86d6dfad9f437f5613d41cace9cc5928474 (patch)
tree238db4a516a8919838c6ce8fbc0ae940a8d9fb76 /src
parent9074a175788d0d51d3396cfbcab32c9d022c3589 (diff)
Add OK note when PKL and CPL annotation texts match.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc4
-rw-r--r--src/verify.h1
2 files changed, 5 insertions, 0 deletions
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<const CPL> 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 <AnnotationText> does not match the CPL's <ContentTitleText>.", 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 */