Fix erroneous urn:uuid: prefix.
[libdcp.git] / src / encrypted_kdm.cc
index be22ca5b00fd994d63e94d56c00ccc78078e73dc..d7cdd8ddce9d9e86ddca944a3c987a2d2c41a811 100644 (file)
@@ -282,7 +282,8 @@ public:
                xmlpp::Element* device_list = node->add_child ("DeviceList");
                device_list->add_child("CertificateThumbprint")->add_child_text (certificate_thumbprint);
        }
-       
+
+       /** DeviceListIdentifier without the urn:uuid: prefix */
        string device_list_identifier;
        string device_list_description;
        string certificate_thumbprint;
@@ -521,7 +522,7 @@ EncryptedKDM::EncryptedKDM (
        kre.content_title_text = content_title_text;
        kre.not_valid_before = not_valid_before;
        kre.not_valid_after = not_valid_after;
-       kre.authorized_device_info.device_list_identifier = "urn:uuid:" + make_uuid ();
+       kre.authorized_device_info.device_list_identifier = make_uuid ();
        string n = recipient->common_name ();
        if (n.find (".") != string::npos) {
                n = n.substr (n.find (".") + 1);