diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-04 23:58:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-04 23:58:36 +0100 |
| commit | bb85881fc35c1b44ba2d85973789f90ca0a005db (patch) | |
| tree | 668c76c17880837ef021530d0593e1a5c750bbdd /src | |
| parent | bbe6ef7245c32815729ca75951d2856b857660d6 (diff) | |
Debug it harder.
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) { |
