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 bool loadInstalledVersions(std::vector<Uptane::Target>* installed_versions,
size_t* current_version);
42 bool loadTlsCommon(std::string*
data,
const BasedPath& path_in);
44 static bool splitNameRoleVersion(
const std::string& full_name, std::string* role_name,
int* version);
47 void clearPrimaryKeys();
52 void clearEcuSerials();
53 void clearMisconfiguredEcus();
54 void clearEcuRegistered();
55 void clearInstalledVersions();
56 void clearInstallationResult();
59 #endif // FSSTORAGE_READ_H_