summaryrefslogtreecommitdiff
path: root/src/encrypted_kdm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/encrypted_kdm.cc')
-rw-r--r--src/encrypted_kdm.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc
index d1089c0b..23cbb0b5 100644
--- a/src/encrypted_kdm.cc
+++ b/src/encrypted_kdm.cc
@@ -646,6 +646,10 @@ EncryptedKDM::EncryptedKDM (
kre.recipient.x509_subject_name = recipient.subject ();
kre.composition_playlist_id = cpl_id;
if (formulation == Formulation::DCI_ANY || formulation == Formulation::DCI_SPECIFIC) {
+ /* XXX: this should be the thumbprint of one of the CPL signer certificates,
+ * which might not necessarily be the case if we're using a CPL from somebody
+ * else.
+ */
kre.content_authenticator = signer->leaf().thumbprint ();
}
kre.content_title_text = content_title_text;
@@ -835,3 +839,10 @@ dcp::operator== (EncryptedKDM const & a, EncryptedKDM const & b)
/* Not exactly efficient... */
return a.as_xml() == b.as_xml();
}
+
+
+vector<string>
+EncryptedKDM::trusted_devices() const
+{
+ return _data->authenticated_public.required_extensions.kdm_required_extensions.authorized_device_info->certificate_thumbprints;
+}