diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-24 23:00:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-24 23:00:34 +0100 |
| commit | d926e11dab4dbe72cf427b5a25ca18ec3d38a40b (patch) | |
| tree | d2729e5a61ee7cfc96744d442ae171ad2c00841e /src/decrypted_kdm.h | |
| parent | 3bf3aadf8c84255ab3f9b2e27a7065b7bba646b7 (diff) | |
KDM AnnotationText is optional.
Diffstat (limited to 'src/decrypted_kdm.h')
| -rw-r--r-- | src/decrypted_kdm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/decrypted_kdm.h b/src/decrypted_kdm.h index f7d21dbe..21df45a1 100644 --- a/src/decrypted_kdm.h +++ b/src/decrypted_kdm.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "types.h" #include "certificate.h" #include <boost/filesystem.hpp> +#include <boost/optional.hpp> namespace dcp { @@ -110,7 +111,7 @@ public: return _keys; } - std::string annotation_text () const { + boost::optional<std::string> annotation_text () const { return _annotation_text; } @@ -125,7 +126,7 @@ public: private: LocalTime _not_valid_before; LocalTime _not_valid_after; - std::string _annotation_text; + boost::optional<std::string> _annotation_text; std::string _content_title_text; std::string _issue_date; std::list<DecryptedKDMKey> _keys; |
