Make sure we have a recipient cert when making KDMs.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Jan 2013 20:46:19 +0000 (20:46 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Jan 2013 20:46:19 +0000 (20:46 +0000)
src/dcp.cc

index b3048bae0475fe8b54d7da778c049864d9f4d8ad..73c8a2cd422433c2b65fdac993f23698b4cd618a 100644 (file)
@@ -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", "");