1 #ifndef UPTANE_PARTIALVRIFICATIONSECONDARY_H_ 2 #define UPTANE_PARTIALVRIFICATIONSECONDARY_H_ 7 #include <boost/filesystem.hpp> 11 #include "managedsecondary.h" 12 #include "primary/secondaryinterface.h" 21 constexpr
static const char*
const Type =
"partial-verification";
32 void init(std::shared_ptr<SecondaryProvider> secondary_provider_in)
override {
33 secondary_provider_ = std::move(secondary_provider_in);
35 std::string Type()
const override {
return Primary::PartialVerificationSecondaryConfig::Type; }
37 if (!sconfig.ecu_serial.empty()) {
43 PublicKey getPublicKey()
const override {
return public_key_; }
46 int getRootVersion(
bool director)
const override;
52 bool ping()
const override {
return true; }
55 void storeKeys(
const std::string& public_key,
const std::string& private_key);
56 bool loadKeys(std::string* public_key, std::string* private_key);
59 std::shared_ptr<SecondaryProvider> secondary_provider_;
62 std::string private_key_;
64 std::string detected_attack_;
69 #endif // UPTANE_PARTIALVRIFICATIONSECONDARY_H_
Base data types that are used in The Update Framework (TUF), part of Uptane.