diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-17 00:45:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-17 00:46:19 +0100 |
| commit | 01e08cb5fef34a33524e404ae8e2ad7d029d0a22 (patch) | |
| tree | b2512bdbb9376cf95b233ab58d0ecd25a86a55f1 /src/pkl.h | |
| parent | 2f6087e528c1a48fed0ac7166b1ff8704684c87a (diff) | |
Use PKL when verifying DCPs.
Diffstat (limited to 'src/pkl.h')
| -rw-r--r-- | src/pkl.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -36,6 +36,7 @@ #include "object.h" #include "types.h" +#include "util.h" #include "certificate_chain.h" #include <libcxml/cxml.h> #include <boost/filesystem.hpp> @@ -59,6 +60,8 @@ public: return _standard; } + std::string hash (std::string id) const; + void add_asset (std::string id, boost::optional<std::string> annotation_text, std::string hash, int64_t size, std::string type); void write (boost::filesystem::path file, boost::shared_ptr<const CertificateChain> 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<int64_t>("Size")) , type (node->string_child("Type")) |
