summaryrefslogtreecommitdiff
path: root/src/encrypted_kdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-08 23:56:52 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-08 23:56:52 +0000
commit27e1378bede33c51835fd6307239692909d834d8 (patch)
tree1c0da933f146ad814b99f80b61fa5f6aa2d684a9 /src/encrypted_kdm.cc
parent4af8d182454ef8452210612c396d514077cd27e1 (diff)
Take thumbprint rather than a full dcp::Certificate for trusted devices.
Diffstat (limited to 'src/encrypted_kdm.cc')
-rw-r--r--src/encrypted_kdm.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc
index 7a7d98c1..23052f8a 100644
--- a/src/encrypted_kdm.cc
+++ b/src/encrypted_kdm.cc
@@ -576,10 +576,11 @@ EncryptedKDM::EncryptedKDM (string s)
}
}
+/** @param trusted_devices Trusted device thumbprints */
EncryptedKDM::EncryptedKDM (
shared_ptr<const CertificateChain> signer,
Certificate recipient,
- vector<Certificate> trusted_devices,
+ vector<string> trusted_devices,
string cpl_id,
string content_title_text,
optional<string> annotation_text,
@@ -651,8 +652,8 @@ EncryptedKDM::EncryptedKDM (
recipient's thumbprint (recipient.thumbprint()).
Waimea uses only the trusted devices here, too.
*/
- BOOST_FOREACH (Certificate const & i, trusted_devices) {
- kre.authorized_device_info->certificate_thumbprints.push_back (i.thumbprint ());
+ BOOST_FOREACH (string i, trusted_devices) {
+ kre.authorized_device_info->certificate_thumbprints.push_back (i);
}
}
}