1 #ifndef FSSTORAGE_READ_H_ 2 #define FSSTORAGE_READ_H_ 4 #include <boost/filesystem.hpp> 5 #include "invstorage.h" 11 bool loadPrimaryKeys(std::string* public_key, std::string* private_key);
12 bool loadPrimaryPublic(std::string* public_key);
13 bool loadPrimaryPrivate(std::string* private_key);
15 bool loadTlsCreds(std::string* ca, std::string* cert, std::string* pkey);
16 bool loadTlsCa(std::string* ca);
17 bool loadTlsCert(std::string* cert);
18 bool loadTlsPkey(std::string* pkey);
26 bool loadDeviceId(std::string* device_id);
27 bool loadEcuSerials(EcuSerials* serials);
28 bool loadMisconfiguredEcus(std::vector<MisconfiguredEcu>* ecus);
29 bool loadEcuRegistered();
30 std::string loadInstalledVersions(std::vector<Uptane::Target>* installed_versions);
43 bool loadTlsCommon(std::string*
data,
const BasedPath& path_in);
45 bool splitNameRoleVersion(
const std::string& full_name, std::string* role_name,
int* version);
48 void clearPrimaryKeys();
53 void clearEcuSerials();
54 void clearMisconfiguredEcus();
55 void clearEcuRegistered();
56 void clearInstalledVersions();
57 void clearInstallationResult();
60 #endif // FSSTORAGE_READ_H_
Metadata version numbers.
RepositoryType
This must match the repo_type table in sqlstorage.