X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Futil.h;h=586d197f73f2e5a9fa4979d66b8fc49198eb8dd6;hb=1bb067620edd3fb0db37894975f3a19d595697db;hp=8a9140c6bf60e48ab07a7ff6fdcc6c6a3cf66784;hpb=414c44166031003b29d1b0b2fd2c9748a63260b4;p=libdcp.git diff --git a/src/util.h b/src/util.h index 8a9140c6..586d197f 100644 --- a/src/util.h +++ b/src/util.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "types.h" @@ -60,7 +61,7 @@ extern bool operator== (Size const & a, Size const & b); extern bool operator!= (Size const & a, Size const & b); extern std::string make_uuid (); -extern std::string make_digest (std::string filename); +extern std::string make_digest (std::string filename, boost::function *); extern std::string content_kind_to_string (ContentKind kind); extern ContentKind content_kind_from_string (std::string kind); extern bool empty_or_white_space (std::string s); @@ -68,7 +69,7 @@ extern boost::shared_ptr decompress_j2k (uint8_t* data, int64_t size, extern void init (); -extern void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key); +extern void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key, bool interop); 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);