summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-14 20:46:19 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-14 20:46:19 +0000
commit312540e64966e15d2c8df7f82610ce05008b1329 (patch)
treed38262bba18c0dc40e46e217ec16bb72170ef3cf /src
parent84d778a7a2816dc653ec4495d565a8a869b7a40c (diff)
Make sure we have a recipient cert when making KDMs.
Diffstat (limited to 'src')
-rw-r--r--src/dcp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index b3048bae..73c8a2cd 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -584,6 +584,8 @@ CPL::make_kdm (
boost::posix_time::ptime until
) const
{
+ assert (recipient_cert);
+
shared_ptr<xmlpp::Document> doc (new xmlpp::Document);
xmlpp::Element* root = doc->create_root_node ("DCinemaSecurityMessage");
root->set_namespace_declaration ("http://www.smpte-ra.org/schemas/430-3/2006/ETM", "");