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)
const;
12 bool loadPrimaryPublic(std::string* public_key)
const;
13 bool loadPrimaryPrivate(std::string* private_key)
const;
15 bool loadTlsCreds(std::string* ca, std::string* cert, std::string* pkey)
const;
16 bool loadTlsCa(std::string* ca)
const;
17 bool loadTlsCert(std::string* cert)
const;
18 bool loadTlsPkey(std::string* pkey)
const;
26 bool loadDeviceId(std::string* device_id)
const;
27 bool loadEcuSerials(EcuSerials* serials)
const;
28 bool loadMisconfiguredEcus(std::vector<MisconfiguredEcu>* ecus)
const;
29 bool loadEcuRegistered()
const;
30 bool loadInstalledVersions(std::vector<Uptane::Target>* installed_versions,
size_t* current_version)
const;
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_