Make an encrypted KDM's id publicly available.
authorMart Jansink <mart@gofilex.nl>
Wed, 14 Feb 2018 10:13:13 +0000 (11:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2018 22:16:07 +0000 (22:16 +0000)
src/encrypted_kdm.cc
src/encrypted_kdm.h

index 8030246f7cd82b478de5d168a0bfda63f07d7bd8..7286f2d7c2090d0b8324678f243952e6c1893bd1 100644 (file)
@@ -677,6 +677,12 @@ EncryptedKDM::keys () const
        return _data->authenticated_private.encrypted_key;
 }
 
+string
+EncryptedKDM::id () const
+{
+       return _data->authenticated_public.message_id;
+}
+
 optional<string>
 EncryptedKDM::annotation_text () const
 {
index 1605d9111ddcce9af04e7cc4f433d6670d3f8d6a..69b9a267c782cd38f2742950651e36a6927c1c48 100644 (file)
@@ -86,6 +86,7 @@ public:
         */
        std::list<std::string> keys () const;
 
+       std::string id () const;
        boost::optional<std::string> annotation_text () const;
        std::string content_title_text () const;
        std::string issue_date () const;