summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-14 16:26:15 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-14 16:26:15 +0000
commit297de9fa11c6cc296be22b227b33dcd13e2b0462 (patch)
tree877d53d0fcfbf4ac1653a93c1dadb7b49be53852 /tools
parent1a1f074d64d05ba9108e9046a44b98a1976e5ef2 (diff)
Tidy up storage of key type in DecryptedKDMKey.
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) {