diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-17 13:28:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-17 13:28:35 +0000 |
| commit | 7d45b16de65ec8622cd5ffe84edc31a822ae7fe7 (patch) | |
| tree | 919d12bca07be5c0421a4ecc40f7f8e027a76fec | |
| parent | 4587644ad4888ebb17a8368312e89da37eabc7be (diff) | |
Add some debugging messages.v1.6.x-laszlo
| -rw-r--r-- | src/decrypted_kdm.cc | 3 | ||||
| -rw-r--r-- | src/util.cc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc index 756028d1..15a80a7d 100644 --- a/src/decrypted_kdm.cc +++ b/src/decrypted_kdm.cc @@ -131,6 +131,8 @@ DecryptedKDM::DecryptedKDM (EncryptedKDM const & kdm, string private_key) { /* Read the private key */ + std::cout << "Decrypting KDM " << kdm.id() << " (for CPL " << kdm.cpl_id() << ") with " << private_key << "\n"; + BIO* bio = BIO_new_mem_buf (const_cast<char *> (private_key.c_str ()), -1); if (!bio) { throw MiscError ("could not create memory BIO"); @@ -144,6 +146,7 @@ DecryptedKDM::DecryptedKDM (EncryptedKDM const & kdm, string private_key) /* Use the private key to decrypt the keys */ BOOST_FOREACH (string const & i, kdm.keys ()) { + std::cout << "\tDecrypting key " << i << "\n"; /* Decode the base-64-encoded cipher value from the KDM */ unsigned char cipher_value[256]; int const cipher_value_len = base64_decode (i, cipher_value, sizeof (cipher_value)); diff --git a/src/util.cc b/src/util.cc index bce28f07..604768c7 100644 --- a/src/util.cc +++ b/src/util.cc @@ -170,6 +170,8 @@ dcp::empty_or_white_space (string s) void dcp::init () { + std::cout << "Initialising libdcp.\n"; + if (xmlSecInit() < 0) { throw MiscError ("could not initialise xmlsec"); } |
