summaryrefslogtreecommitdiff
path: root/src/decrypted_kdm_key.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-14 16:43:59 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-14 16:43:59 +0000
commitadb4f8a5014c3888f3322d1765fb0ee52b1d3169 (patch)
treeb8b06de0a2138d42efa44fa537a51492328d630a /src/decrypted_kdm_key.h
parentb8ae635ba057c68eb1d883e62df353f73def3c57 (diff)
Extract KDM standard.
Diffstat (limited to 'src/decrypted_kdm_key.h')
-rw-r--r--src/decrypted_kdm_key.h15
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 &);