diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-14 16:43:59 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-02-14 16:43:59 +0000 |
| commit | adb4f8a5014c3888f3322d1765fb0ee52b1d3169 (patch) | |
| tree | b8b06de0a2138d42efa44fa537a51492328d630a /src/decrypted_kdm_key.h | |
| parent | b8ae635ba057c68eb1d883e62df353f73def3c57 (diff) | |
Extract KDM standard.
Diffstat (limited to 'src/decrypted_kdm_key.h')
| -rw-r--r-- | src/decrypted_kdm_key.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/decrypted_kdm_key.h b/src/decrypted_kdm_key.h index 1e03ee0a..b98f1b2b 100644 --- a/src/decrypted_kdm_key.h +++ b/src/decrypted_kdm_key.h @@ -39,6 +39,7 @@ #define LIBDCP_DECRYPTED_KDM_KEY_H #include "key.h" +#include "types.h" #include <boost/optional.hpp> namespace dcp { @@ -49,11 +50,13 @@ namespace dcp { class DecryptedKDMKey { public: - DecryptedKDMKey (boost::optional<std::string> type, std::string id, Key key, std::string cpl_id) + DecryptedKDMKey (boost::optional<std::string> type, std::string id, Key key, std::string cpl_id, Standard standard, std::string signer_thumbprint) : _type (type) , _id (id) , _key (key) , _cpl_id (cpl_id) + , _standard (standard) + , _signer_thumbprint (signer_thumbprint) {} boost::optional<std::string> type () const { @@ -72,11 +75,21 @@ public: return _cpl_id; } + Standard standard () const { + return _standard; + } + + std::string signer_thumbprint () const { + return _signer_thumbprint; + } + private: boost::optional<std::string> _type; std::string _id; Key _key; std::string _cpl_id; + Standard _standard; + std::string _signer_thumbprint; }; bool operator== (DecryptedKDMKey const &, DecryptedKDMKey const &); |
