summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
commit781982ea9a78f88fef130dc08cd028b7e5f47937 (patch)
tree5132d1abeecd40814b06d148bfd126b3b48b2604 /src/util.h
parent56782052e43a1e010f7f07cbc0dbaed5b6cb50a3 (diff)
A few encryption-related fixes and comments.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 80015593..4f590198 100644
--- a/src/util.h
+++ b/src/util.h
@@ -28,6 +28,8 @@
#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include <boost/function.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/filesystem.hpp>
#include <openjpeg.h>
#include "types.h"
@@ -69,14 +71,15 @@ extern boost::shared_ptr<XYZFrame> 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, bool interop);
-extern void add_signature_value (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key, std::string const & ns);
+extern void sign (xmlpp::Element* parent, CertificateChain const & certificates, boost::filesystem::path signer_key, bool interop);
+extern void add_signature_value (xmlpp::Element* parent, CertificateChain const & certificates, boost::filesystem::path 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);
extern std::string tm_to_string (struct tm *);
extern std::string utc_offset_to_string (int);
+extern std::string ptime_to_string (boost::posix_time::ptime);
}