2021-05-17 19:56:55 +00:00
|
|
|
#include "network.h"
|
2021-06-08 19:58:32 +00:00
|
|
|
#include "thread_safe.h"
|
|
|
|
|
2021-05-29 20:29:10 +00:00
|
|
|
namespace http {
|
2021-06-08 19:58:32 +00:00
|
|
|
|
2021-05-29 20:29:10 +00:00
|
|
|
void init(std::shared_ptr<safe::signal_t> shutdown_event);
|
|
|
|
int create_creds(const std::string &pkey, const std::string &cert);
|
2021-06-09 19:55:13 +00:00
|
|
|
int save_user_creds(
|
|
|
|
const std::string &file,
|
|
|
|
const std::string &username,
|
|
|
|
const std::string &password,
|
|
|
|
bool run_our_mouth = false);
|
|
|
|
|
2021-05-29 21:35:44 +00:00
|
|
|
int reload_user_creds(const std::string &file);
|
2021-05-29 20:29:10 +00:00
|
|
|
extern std::string unique_id;
|
|
|
|
extern net::net_e origin_pin_allowed;
|
2021-06-08 19:58:32 +00:00
|
|
|
|
2021-05-29 20:29:10 +00:00
|
|
|
} // namespace http
|