1 #ifndef UPTANE_REPOSITORY_H_ 2 #define UPTANE_REPOSITORY_H_ 8 #include "config/config.h" 9 #include "crypto/crypto.h" 10 #include "crypto/keymanager.h" 11 #include "logging/logging.h" 12 #include "storage/invstorage.h" 18 Manifest(
const Config &config_in, std::shared_ptr<INvStorage> storage_in)
19 : storage_{std::move(storage_in)}, keys_(storage_, config_in.keymanagerConfig()) {}
21 Json::Value signManifest(
const Json::Value &version_manifests);
22 Json::Value signVersionManifest(
const Json::Value &primary_version_manifests);
24 void setPrimaryEcuSerialHwId(
const std::pair<Uptane::EcuSerial, Uptane::HardwareIdentifier> &serials) {
25 primary_ecu_serial = serials.first;
26 primary_hardware_id = serials.second;
29 EcuSerial getPrimaryEcuSerial() {
return primary_ecu_serial; }
34 std::shared_ptr<INvStorage> storage_;
41 bool initRoot(
const std::string &root_raw);
42 bool verifyRoot(
const std::string &root_raw);
43 int rootVersion() {
return root.version(); }
44 bool rootExpired() {
return root.isExpired(TimeStamp::Now()); }
Configuration object for an aktualizr instance running on a primary ECU.
RepositoryType
This must match the repo_type table in sqlstorage.
Base data types that are used in The Update Framework (TUF), part of UPTANE.