summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decrypted_kdm.cc3
-rw-r--r--src/util.cc2
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");
}