Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#ifndef SSH_HPP
|
|
#define SSH_HPP
|
|
|
|
#include <httplib.h>
|
|
|
|
#define DROPBEAR_SSH "dropbear"
|
|
#define OPENSSH_SSH "openssh"
|
|
|
|
namespace api
|
|
{
|
|
namespace settings
|
|
{
|
|
namespace ssh
|
|
{
|
|
std::string get_ssh_server();
|
|
std::string set_ssh_server(std::string &server);
|
|
|
|
void get_ssh_server_http(const httplib::Request &request, httplib::Response &response);
|
|
void set_ssh_server_http(const httplib::Request &request, httplib::Response &response);
|
|
|
|
void get_ssh_status(const httplib::Request &request, httplib::Response &response);
|
|
void set_ssh_status(const httplib::Request &request, httplib::Response &response);
|
|
|
|
void get_ssh_keys(const httplib::Request &request, httplib::Response &response);
|
|
void set_ssh_keys(const httplib::Request &request, httplib::Response &response);
|
|
|
|
void get_ssh_port(const httplib::Request &request, httplib::Response &response);
|
|
void set_ssh_port(const httplib::Request &request, httplib::Response &response);
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif // SSH_HPP
|