diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-29 09:13:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-29 09:13:37 +0100 |
| commit | 56295f9d82c74b967b234ac89a5600d5cff1b641 (patch) | |
| tree | 36f4df2f4943c0fb1e96eb2960070ea9afa8df1e /src/kdm.h | |
| parent | 7e52cff1c3da057fa6f6fbba00d233fa946bb878 (diff) | |
Change thing used for authorized device list description; set up _keys when loading KDM.
Diffstat (limited to 'src/kdm.h')
| -rw-r--r-- | src/kdm.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -30,6 +30,8 @@ #include "key.h" #include "metadata.h" +class kdm_key_test; + namespace libdcp { namespace xml { @@ -114,12 +116,16 @@ public: std::string encrypted_base64 (boost::shared_ptr<const Certificate> cert) const; private: + friend class ::kdm_key_test; + void get (uint8_t *, uint8_t const **, int) const; std::string get (uint8_t const **, int) const; std::string get_uuid (uint8_t const **) const; void put (uint8_t **, uint8_t const *, int) const; void put (uint8_t **, std::string) const; void put_uuid (uint8_t **, std::string) const; + + friend bool operator== (KDMKey const &, KDMKey const &); uint8_t _signer_thumbprint[20]; std::string _cpl_id; @@ -164,6 +170,9 @@ public: std::string annotation_text, std::string issue_date ); + KDM (KDM const &); + KDM & operator= (KDM const &); + /** @return The unencrypted content keys from this KDM */ std::list<KDMKey> keys () const { return _keys; @@ -184,7 +193,7 @@ private: std::list<KDMKey> _keys; /** The KDM's contents, mapped 1:1-ish to the XML */ - boost::shared_ptr<xml::DCinemaSecurityMessage> xml_kdm; + boost::shared_ptr<xml::DCinemaSecurityMessage> _xml_kdm; }; |
