1 #ifndef UPTANE_PARTIALVRIFICATIONSECONDARY_H_ 2 #define UPTANE_PARTIALVRIFICATIONSECONDARY_H_ 7 #include <boost/filesystem.hpp> 10 #include "uptane/secondaryconfig.h" 11 #include "uptane/secondaryinterface.h" 21 if (!sconfig.ecu_serial.empty()) {
26 PublicKey getPublicKey()
override {
return public_key_; }
29 int getRootVersion(
bool director)
override;
30 bool putRoot(
const std::string& root,
bool director)
override;
32 bool sendFirmwareAsync(
const std::shared_ptr<std::string>&
data)
override;
33 Json::Value getManifest()
override;
36 void storeKeys(
const std::string& public_key,
const std::string& private_key);
37 bool loadKeys(std::string* public_key, std::string* private_key);
41 std::string private_key_;
43 std::string detected_attack_;
48 #endif // UPTANE_PARTIALVRIFICATIONSECONDARY_H_
Base data types that are used in The Update Framework (TUF), part of UPTANE.