From 297de9fa11c6cc296be22b227b33dcd13e2b0462 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Feb 2017 16:26:15 +0000 Subject: Tidy up storage of key type in DecryptedKDMKey. --- src/decrypted_kdm_key.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/decrypted_kdm_key.h') diff --git a/src/decrypted_kdm_key.h b/src/decrypted_kdm_key.h index 95ffccb8..1e03ee0a 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 namespace dcp { @@ -48,14 +49,14 @@ namespace dcp { class DecryptedKDMKey { public: - DecryptedKDMKey (std::string type, std::string id, Key key, std::string cpl_id) + DecryptedKDMKey (boost::optional type, std::string id, Key key, std::string cpl_id) : _type (type) , _id (id) , _key (key) , _cpl_id (cpl_id) {} - std::string type () const { + boost::optional type () const { return _type; } @@ -72,7 +73,7 @@ public: } private: - std::string _type; + boost::optional _type; std::string _id; Key _key; std::string _cpl_id; -- cgit v1.2.3