1 #ifndef UPTANE_PARTIALVRIFICATIONSECONDARY_H_
2 #define UPTANE_PARTIALVRIFICATIONSECONDARY_H_
7 #include <boost/filesystem.hpp>
10 #include "uptane/secondaryinterface.h"
13 #include "managedsecondary.h"
22 constexpr
static const char*
const Type =
"partial-verification";
33 std::string Type()
const override {
return Primary::PartialVerificationSecondaryConfig::Type; }
35 if (!sconfig.ecu_serial.empty()) {
41 PublicKey getPublicKey()
const override {
return public_key_; }
44 int getRootVersion(
bool director)
const override;
45 bool putRoot(
const std::string& root,
bool director)
override;
47 bool sendFirmware(
const std::string&
data)
override;
50 bool ping()
const override {
return true; }
53 void storeKeys(
const std::string& public_key,
const std::string& private_key);
54 bool loadKeys(std::string* public_key, std::string* private_key);
59 std::string private_key_;
61 std::string detected_attack_;
66 #endif // UPTANE_PARTIALVRIFICATIONSECONDARY_H_