Web UI IP Based Authentication

This commit is contained in:
Elia Zammuto
2021-05-17 21:56:55 +02:00
parent fe08c241ec
commit 57f444357d
5 changed files with 30 additions and 6 deletions
+2
View File
@@ -1,7 +1,9 @@
#include "network.h"
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;
extern net::net_e origin_pin_allowed;
}