diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-15 20:53:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-15 20:53:25 +0000 |
| commit | cb18463291c502979d661b75e9e446f6c9bb0e3c (patch) | |
| tree | 99f2b5b3bef02dfcc053905f9193f98028eab2bc /src/decrypted_kdm.h | |
| parent | dc31f6d229c0b0c3d953022594c8bb713ca5d72e (diff) | |
Support trusted device lists in KDMs.
Diffstat (limited to 'src/decrypted_kdm.h')
| -rw-r--r-- | src/decrypted_kdm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/decrypted_kdm.h b/src/decrypted_kdm.h index 2cb934bb..f7d21dbe 100644 --- a/src/decrypted_kdm.h +++ b/src/decrypted_kdm.h @@ -90,10 +90,17 @@ public: /** Encrypt this KDM's keys and sign the whole KDM. * @param signer Chain to sign with. * @param recipient Certificate of the projector/server which should receive this KDM's keys. + * @param trusted_devices Extra trusted devices which should be written to the KDM (recipient will be written + * as a trusted device automatically and does not need to be included in this list). * @param formulation Formulation to use for the encrypted KDM. * @return Encrypted KDM. */ - EncryptedKDM encrypt (boost::shared_ptr<const CertificateChain> signer, Certificate recipient, Formulation formulation) const; + EncryptedKDM encrypt ( + boost::shared_ptr<const CertificateChain> signer, + Certificate recipient, + std::vector<Certificate> trusted_devices, + Formulation formulation + ) const; void add_key (std::string type, std::string key_id, Key key, std::string cpl_id); void add_key (DecryptedKDMKey key); |
