summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-12 20:33:15 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:22 +0100
commitab9d9fe2f33bf5fadb0132120111e0e73c86ca09 (patch)
tree0cf431c3a4ce79d4c2a4ef96ef6fd9de2ae10344 /src/verify.cc
parent621b82e1a5dfeb34602f336d645c670618d6db7e (diff)
Bv2.1 6.2.1: Check that release territory conforms to RFC 5646.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 16233021..363264db 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -647,6 +647,10 @@ dcp::verify (
verify_language_tag (i, notes);
}
+ if (cpl->release_territory()) {
+ verify_language_tag (cpl->release_territory().get(), notes);
+ }
+
/* Check that the CPL's hash corresponds to the PKL */
BOOST_FOREACH (shared_ptr<PKL> i, dcp->pkls()) {
optional<string> h = i->hash(cpl->id());