[strongSwan] How to avoid the parsing of strongswan.conf file and set the configuration options programmatically?
Chinmaya Dwibedy
ckdwibedy at yahoo.com
Wed Apr 22 16:02:01 CEST 2015
Thank you Martin for your valuable response. Let me go thru the charon-xpc under src/frontends/osx.
On Wednesday, April 22, 2015 7:28 PM, Martin Willi <martin at strongswan.org> wrote:
Hi,
> set_strongswan_conf_options(lfile);
> system("starter --daemon charon");
You can't set options in the current process, and then expect that these
options get inherited to a child process spawned using system() or any
exec*() function.
If you want to set strongswan.conf options programatically, you'll have
to do that early in the process you want to control, for example in
charons main(). Some libcharon based programs already do that, for
example charon-xpc under src/frontends/osx.
Regards
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20150422/4e17c38f/attachment.html>
More information about the Users
mailing list