Add conversions from char.
[libdcp.git] / src / encrypted_kdm.cc
index 8aca023c3062ef622ba13f421fa238c5fb034244..ec8e6835fb3508680fe3943ceb365688d6e71dc5 100644 (file)
@@ -577,6 +577,7 @@ EncryptedKDM::EncryptedKDM (
                   reports that this doesn't work with his setup;
                   a working KDM does not include the recipient's
                   thumbprint (recipient.thumbprint()).
+                  Waimea uses only the trusted devices here, too.
                */
                BOOST_FOREACH (Certificate const & i, trusted_devices) {
                        kre.authorized_device_info.certificate_thumbprints.push_back (i.thumbprint ());
@@ -671,6 +672,18 @@ EncryptedKDM::issue_date () const
        return _data->authenticated_public.issue_date;
 }
 
+LocalTime
+EncryptedKDM::not_valid_before () const
+{
+       return _data->authenticated_public.required_extensions.kdm_required_extensions.not_valid_before;
+}
+
+LocalTime
+EncryptedKDM::not_valid_after () const
+{
+       return _data->authenticated_public.required_extensions.kdm_required_extensions.not_valid_after;
+}
+
 bool
 dcp::operator== (EncryptedKDM const & a, EncryptedKDM const & b)
 {