diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-26 19:15:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-26 19:15:13 +0100 |
| commit | 7103135fcf2e02458a2cfb53ba98d10cd450af8d (patch) | |
| tree | 4a2c22ebe20e0e483301a0eaccfd0537c4c5103f /src/kdm.h | |
| parent | 22249987bb6fbbd8c4482a19c6eb85279e73c934 (diff) | |
Try to support different KDM formulations.
Diffstat (limited to 'src/kdm.h')
| -rw-r--r-- | src/kdm.h | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -78,7 +78,12 @@ public: */ KDMKey ( boost::shared_ptr<const Signer> signer, - std::string cpl_id, std::string key_type, std::string key_id, boost::posix_time::ptime from, boost::posix_time::ptime until, Key key + std::string cpl_id, + std::string key_type, + std::string key_id, + boost::posix_time::ptime from, + boost::posix_time::ptime until, + Key key ); KDMKey (KDMKey const &); @@ -155,6 +160,14 @@ public: */ KDM (boost::filesystem::path kdm, boost::filesystem::path private_key); + enum Formulation + { + MODIFIED_TRANSITIONAL_1, + DCI_ANY, + DCI_SPECIFIC + }; + + /** Create a new KDM. * @param cpl CPL file that the KDM is for. * @param signer Certificate chain to sign the KDM with. @@ -166,9 +179,13 @@ public: * @param issue_date Text for the <IssueDate> node. */ KDM ( - boost::filesystem::path cpl, boost::shared_ptr<const Signer> signer, boost::shared_ptr<const Certificate> recipient_cert, Key key, + boost::filesystem::path cpl, + boost::shared_ptr<const Signer> signer, + boost::shared_ptr<const Certificate> recipient_cert, + Key key, boost::posix_time::ptime not_valid_before, boost::posix_time::ptime not_valid_after, - std::string annotation_text, std::string issue_date + std::string annotation_text, std::string issue_date, + Formulation formulation ); KDM (KDM const &); |
