centralize reading/writing file

This commit is contained in:
loki
2021-06-09 12:04:51 +02:00
parent 9d52174d6b
commit cf77b301bc
4 changed files with 3 additions and 33 deletions
-2
View File
@@ -5,8 +5,6 @@ namespace http {
void init(std::shared_ptr<safe::signal_t> shutdown_event);
int create_creds(const std::string &pkey, const std::string &cert);
std::string read_file(const char *path);
int write_file(const char *path, const std::string_view &contents);
int reload_user_creds(const std::string &file);
extern std::string unique_id;
extern net::net_e origin_pin_allowed;