static struct lshd_config * make_lshd_config(struct lshd_context *ctx) { NEW(lshd_config, self); init_server_config(&self->super, &lshd_config_parser, FILE_LSHD_CONF, ENV_LSHD_CONF); self->algorithms = make_algorithms_options(all_symmetric_algorithms()); self->ctx = ctx; /* Default behaviour is to lookup the "ssh" service, and fall back * to port 22 if that fails. */ string_queue_init(&self->ports); self->ports_override_config_file = 0; object_queue_init(&self->interfaces); self->interfaces_override_config_file = 0; self->hostkey = NULL; self->daemonic = 0; self->daemon_flags = 0; self->pid_file = NULL; self->use_pid_file = -1; self->corefile = -1; return self; }
int main(int argc, char **argv) { init_server_config(); aeMain(g_server.el); return 0; }