summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
commit7702e5d643440e75369078863b34f8a574ee4143 (patch)
treee01edc51718fd6c475b449748ff7fa6e5c526bc9 /src/dcp.cc
parentc91aa27e13703874c944fed763b5b039ceae71d2 (diff)
Considerable re-work of KDM class to express the difference between encrypted and unencrypted KDMs.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 88e36506..817cf36e 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -33,9 +33,10 @@
#include "reel.h"
#include "cpl.h"
#include "signer.h"
-#include "kdm.h"
#include "compose.hpp"
#include "AS_DCP.h"
+#include "decrypted_kdm.h"
+#include "decrypted_kdm_key.h"
#include <xmlsec/xmldsig.h>
#include <xmlsec/app.h>
#include <libxml++/libxml++.h>
@@ -194,13 +195,13 @@ DCP::encrypted () const
}
void
-DCP::add (KDM const & kdm)
+DCP::add (DecryptedKDM const & kdm)
{
- list<KDMKey> keys = kdm.keys ();
+ list<DecryptedKDMKey> keys = kdm.keys ();
list<shared_ptr<CPL> > cpl = cpls ();
for (list<shared_ptr<CPL> >::iterator i = cpl.begin(); i != cpl.end(); ++i) {
- for (list<KDMKey>::iterator j = keys.begin(); j != keys.end(); ++j) {
+ for (list<DecryptedKDMKey>::iterator j = keys.begin(); j != keys.end(); ++j) {
if (j->cpl_id() == (*i)->id()) {
(*i)->add (kdm);
}