X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fencrypted_kdm.h;h=247d6678045098d7cac57e47f0328bda4c241657;hb=57b862d997857868d0c3c91a9776f854b62c6b56;hp=41231c2ef457d665995193d5a9f144868ac3d555;hpb=f353b192693291e842e297118d5899c63a5a8e22;p=libdcp.git diff --git a/src/encrypted_kdm.h b/src/encrypted_kdm.h index 41231c2e..247d6678 100644 --- a/src/encrypted_kdm.h +++ b/src/encrypted_kdm.h @@ -25,6 +25,7 @@ #define LIBDCP_ENCRYPTED_KDM_H #include "local_time.h" +#include "types.h" #include #include @@ -38,7 +39,7 @@ namespace data { class EncryptedKDMData; } -class Signer; +class CertificateChain; class Certificate; /** @class EncryptedKDM @@ -51,11 +52,7 @@ class Certificate; class EncryptedKDM { public: - /** Read a KDM from an XML file. - * @param file XML file to read. - */ - EncryptedKDM (boost::filesystem::path file); - + EncryptedKDM (std::string); EncryptedKDM (EncryptedKDM const & kdm); EncryptedKDM & operator= (EncryptedKDM const &); ~EncryptedKDM (); @@ -73,24 +70,25 @@ public: * keys (also key id, CPL id etc.) */ std::list keys () const; - + private: friend class DecryptedKDM; /** Construct an EncryptedKDM from a set of details */ EncryptedKDM ( - boost::shared_ptr signer, - boost::shared_ptr recipient, + boost::shared_ptr signer, + Certificate recipient, std::string device_list_description, std::string cpl_id, std::string cpl_content_title_text, - LocalTime _not_valid_before, - LocalTime _not_valid_after, + LocalTime not_valid_before, + LocalTime not_valid_after, + Formulation formulation, std::list > key_ids, std::list keys ); - + data::EncryptedKDMData* _data; };