diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index b316a524..8bbb465b 100644 --- a/src/util.cc +++ b/src/util.cc @@ -161,12 +161,21 @@ dcp::make_digest(boost::filesystem::path filename, function<void (int64_t, int64 void +xmlsec_error_callback(char const* file, int line, char const* func, char const* error_object, char const* error_subject, int reason, char const* message) +{ + printf("%s %d %s %s %s %d %s\n", file, line, func, error_object, error_subject, reason, message); +} + + +void dcp::init (optional<boost::filesystem::path> given_resources_directory) { if (xmlSecInit() < 0) { throw MiscError ("could not initialise xmlsec"); } + xmlSecErrorsSetCallback(xmlsec_error_callback); + #ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING int result = xmlSecCryptoDLLoadLibrary(BAD_CAST "openssl"); if (result < 0) { |
