summaryrefslogtreecommitdiff
path: root/src/decrypted_kdm.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-26 20:33:19 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-26 20:33:19 +0100
commitd87f979ea98a19614f164a0d49fccc1be926e789 (patch)
tree5558493eb6c717f59c587e01a3041d122eb346f4 /src/decrypted_kdm.h
parentecd8cbc534e82d0644d15fa483c2b6bf54876276 (diff)
Forward-port KDM formulation from v0.
Diffstat (limited to 'src/decrypted_kdm.h')
-rw-r--r--src/decrypted_kdm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decrypted_kdm.h b/src/decrypted_kdm.h
index bb50d6ad..3c3d07db 100644
--- a/src/decrypted_kdm.h
+++ b/src/decrypted_kdm.h
@@ -24,6 +24,7 @@
#include "key.h"
#include "local_time.h"
#include "decrypted_kdm_key.h"
+#include "types.h"
#include <boost/filesystem.hpp>
namespace dcp {
@@ -75,9 +76,10 @@ public:
/** Encrypt this KDM's keys and sign the whole KDM.
* @param signer Signer.
* @param recipient Certificate of the projector/server which should receive this KDM's keys.
+ * @param formulation Formulation to use for the encrypted KDM.
* @return Encrypted KDM.
*/
- EncryptedKDM encrypt (boost::shared_ptr<const Signer> signer, boost::shared_ptr<const Certificate> recipient) const;
+ EncryptedKDM encrypt (boost::shared_ptr<const Signer> signer, boost::shared_ptr<const Certificate> recipient, Formulation formulation) const;
/** @return This KDM's (decrypted) keys, which could be used to decrypt MXFs. */
std::list<DecryptedKDMKey> keys () const {