From 5eb63969c5b6f26ea820cfab116d4aecb6bd3390 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 28 Jul 2016 16:43:20 +0100 Subject: Add some accessors. --- src/encrypted_kdm.cc | 12 ++++++++++++ src/encrypted_kdm.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 8aca023c..4c24953f 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -671,6 +671,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) { diff --git a/src/encrypted_kdm.h b/src/encrypted_kdm.h index 6341220b..5b60378c 100644 --- a/src/encrypted_kdm.h +++ b/src/encrypted_kdm.h @@ -90,6 +90,8 @@ public: std::string content_title_text () const; std::string issue_date () const; std::string cpl_id () const; + LocalTime not_valid_before() const; + LocalTime not_valid_after() const; private: -- cgit v1.2.3