From ce6ced029aefe5c3996bd61b0778bcd7433b2fb3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Feb 2017 16:15:13 +0000 Subject: Add accessor for recipient X509 subject name. --- src/encrypted_kdm.cc | 6 ++++++ src/encrypted_kdm.h | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 80c5e2ef..8251007b 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -688,6 +688,12 @@ EncryptedKDM::not_valid_after () const return _data->authenticated_public.required_extensions.kdm_required_extensions.not_valid_after; } +string +EncryptedKDM::recipient_x509_subject_name () const +{ + return _data->authenticated_public.required_extensions.kdm_required_extensions.recipient.x509_subject_name; +} + bool dcp::operator== (EncryptedKDM const & a, EncryptedKDM const & b) { diff --git a/src/encrypted_kdm.h b/src/encrypted_kdm.h index edbf5192..1605d911 100644 --- a/src/encrypted_kdm.h +++ b/src/encrypted_kdm.h @@ -90,8 +90,9 @@ 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; + LocalTime not_valid_before () const; + LocalTime not_valid_after () const; + std::string recipient_x509_subject_name () const; private: -- cgit v1.2.3