More bits in dcpkdm.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Mar 2019 20:03:48 +0000 (20:03 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Mar 2019 20:03:48 +0000 (20:03 +0000)
tools/dcpkdm.cc

index 7104b547d45cb7ca1932361859784d7559ff0378..faad95d65df0000f86da1387d6505cc1bd4ef005 100644 (file)
@@ -99,11 +99,13 @@ main (int argc, char* argv[])
        dcp::EncryptedKDM enc_kdm (dcp::file_to_string (kdm_file));
 
        if (enc_kdm.annotation_text()) {
-               cout << "Annotation:    " << enc_kdm.annotation_text().get() << "\n";
+               cout << "Annotation:        " << enc_kdm.annotation_text().get() << "\n";
        }
-       cout << "Content title: " << enc_kdm.content_title_text() << "\n";
-       cout << "CPL id:        " << enc_kdm.cpl_id() << "\n";
-       cout << "Recipient:     " << enc_kdm.recipient_x509_subject_name() << "\n";
+       cout << "Content title:    " << enc_kdm.content_title_text() << "\n";
+       cout << "CPL id:           " << enc_kdm.cpl_id() << "\n";
+       cout << "Recipient:        " << enc_kdm.recipient_x509_subject_name() << "\n";
+       cout << "Not valid before: " << enc_kdm.not_valid_before().as_string() << "\n";
+       cout << "Not valid after:  " << enc_kdm.not_valid_after().as_string() << "\n";
 
        cout << "Signer chain:\n";
        dcp::CertificateChain signer = enc_kdm.signer_certificate_chain ();