Esempio n. 1
0
const struct lsw_conf_options *lsw_init_rootdir(const char *root_dir)
{
    if(!setup) lsw_conf_setdefault();
    global_oco.rootdir = clone_str(root_dir, "override /");
    lsw_conf_calculate(&global_oco);
    setup = TRUE;
    
    return &global_oco;
}
Esempio n. 2
0
/* This is only used in testing/crypto (and formerly in testing/lib/libpluto) */
void lsw_init_rootdir(const char *root_dir)
{
	if (!setup)
		lsw_conf_setdefault();
	pfreeany(global_oco.rootdir);
	global_oco.rootdir = clone_str(root_dir, "override /");
	lsw_conf_calculate(&global_oco);
	setup = TRUE;
}
Esempio n. 3
0
const struct lsw_conf_options *lsw_init_options(void)
{
    if(setup) return &global_oco;
    setup = TRUE;

    lsw_conf_setdefault();
    lsw_conf_calculate(&global_oco);

    return &global_oco;
}
Esempio n. 4
0
void lsw_init_ipsecdir(const char *ipsec_dir)
{
	if (!setup)
		lsw_conf_setdefault();
	global_oco.confddir = clone_str(ipsec_dir, "override ipsec.d");
	global_oco.nssdir = clone_str(ipsec_dir, "override nssdir");
	lsw_conf_calculate(&global_oco);
	setup = TRUE;

	libreswan_log("adjusting ipsec.d to %s", global_oco.confddir);
}