summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-05 22:02:24 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-05 22:02:24 +0000
commitfd8a665cbb0a9a44995f88567747e2379a6f4098 (patch)
treebd5b38579afdc55025cc93e52b8595a8aeebd46a /src/util.h
parent40c974694bb6c01d7bfd432b7467b933e01dc418 (diff)
Various probably quite untidy progress on KDMs.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 6426eb8d..3b60e0c7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -27,9 +27,14 @@
#include <openjpeg.h>
#include "types.h"
+namespace xmlpp {
+ class Element;
+}
+
namespace libdcp {
-class ARGBFrame;
+class ARGBFrame;
+class CertificateChain;
/** Create a UUID.
* @return UUID.
@@ -55,4 +60,8 @@ extern boost::shared_ptr<ARGBFrame> xyz_to_rgb (opj_image_t* xyz_frame);
extern void init ();
+extern void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key);
+extern void add_signature_value (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key, std::string const & ns);
+extern void add_signer (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & ns);
+
}