X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Futil.h;h=fab7bd371fdef9fe6371fdbfe68b6b3a94faff64;hb=d5ec30b6d746177e97707085b9e6b709e41ecc20;hp=6332ddc08f157a4f3ec50754f94b7a20408dc137;hpb=5b6d753439207fcb33b84690bcc22d142a7c3bfa;p=libdcp.git diff --git a/src/util.h b/src/util.h index 6332ddc0..fab7bd37 100644 --- a/src/util.h +++ b/src/util.h @@ -30,9 +30,14 @@ #include #include "types.h" +namespace xmlpp { + class Element; +} + namespace libdcp { class ARGBFrame; +class CertificateChain; class GammaLUT; class XYZsRGBLUT; @@ -62,6 +67,14 @@ extern bool empty_or_white_space (std::string s); extern opj_image_t* decompress_j2k (uint8_t* data, int64_t size, int reduce); extern boost::shared_ptr xyz_to_rgb (opj_image_t* xyz_frame, boost::shared_ptr, boost::shared_ptr); +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); + +extern int base64_decode (std::string const & in, unsigned char* out, int out_length); + } #endif