summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/dcpkdm.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dcpkdm.cc b/tools/dcpkdm.cc
index 00ab201f..197397cb 100644
--- a/tools/dcpkdm.cc
+++ b/tools/dcpkdm.cc
@@ -103,7 +103,9 @@ main (int argc, char* argv[])
BOOST_FOREACH (dcp::DecryptedKDMKey i, dec_kdm.keys ()) {
cout << "\n";
cout << "\tID: " << i.id() << "\n";
- cout << "\tType: " << i.type() << "\n";
+ if (i.type()) {
+ cout << "\tType: " << i.type().get() << "\n";
+ }
cout << "\tKey: " << i.key().hex() << "\n";
}
} catch (dcp::KDMDecryptionError& e) {