Moved Common HTTPS Initialization Logic in a common file

This commit is contained in:
Elia Zammuto
2021-05-11 23:38:45 +02:00
parent 04421d84a3
commit 27a1144217
6 changed files with 168 additions and 112 deletions
+7
View File
@@ -0,0 +1,7 @@
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);
extern std::string unique_id;
}