From 297de9fa11c6cc296be22b227b33dcd13e2b0462 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Feb 2017 16:26:15 +0000 Subject: Tidy up storage of key type in DecryptedKDMKey. --- tools/dcpkdm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/dcpkdm.cc') 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) { -- cgit v1.2.3