From 01e08cb5fef34a33524e404ae8e2ad7d029d0a22 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Aug 2018 00:45:59 +0100 Subject: Use PKL when verifying DCPs. --- src/pkl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pkl.h') diff --git a/src/pkl.h b/src/pkl.h index 3b960ddf..d17b8fe1 100644 --- a/src/pkl.h +++ b/src/pkl.h @@ -36,6 +36,7 @@ #include "object.h" #include "types.h" +#include "util.h" #include "certificate_chain.h" #include #include @@ -59,6 +60,8 @@ public: return _standard; } + std::string hash (std::string id) const; + void add_asset (std::string id, boost::optional annotation_text, std::string hash, int64_t size, std::string type); void write (boost::filesystem::path file, boost::shared_ptr signer) const; @@ -68,7 +71,8 @@ private: { public: Asset (cxml::ConstNodePtr node) - : annotation_text (node->optional_string_child("AnnotationText")) + : Object (remove_urn_uuid(node->string_child("Id"))) + , annotation_text (node->optional_string_child("AnnotationText")) , hash (node->string_child("Hash")) , size (node->number_child("Size")) , type (node->string_child("Type")) -- cgit v1.2.3