Permalink
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (28 sloc) 1.16 KB
#include <string>
namespace config
{
bool verbose = 0, silent = 0, v6 = 0, uid_change = 1, wrap = 0,
always_login = 0, extract_blob = 0;
std::string keyfile = "./serverkey.priv", certfile = "./serverkey.pub";
std::string host = "", port = "2222", local_port = "";
// If ends with "/", its interpreted as current
// subdirectory that contains the known server pubkeys;
// otherwise as a absolute path for the file containing the
// server pubkey
std::string server_keys = ".crash/";
// Two meanings: for server:
// If starts with "/", its interpreted as the absolute path
// of the file containing the auth-key (be CAREFULL since this
// may open root-hole, depending on permission of the file).
// otherwise, its interpreted as ~/$user_keys/authorized_keys
// where ~ depends on the user that wants to authenticate
// for client: this should be the absolute path of the file
// containing the private key used to authenticate against
// the server
std::string user_keys = ".crash";
std::string user = "";
std::string cmd = "";
// trigger-file / trigger-message
std::string tfile = "/var/log/messages", tmsg = "";
std::string good_ip_file = "";
}