[strongSwan] How to avoid the parsing of strongswan.conf file and set the configuration options programmatically?

2015-04-22 Thread Chinmaya Dwibedy
  Hi,I want toget rid of strongswan.conf file (which is installed /etc directory). Instead I wantto set the values programmatically. I have removed the /etc/strongswan.conf ,which is read by libstrongswan during library initialization. Furthermore Ihave written set_strongswan_conf_options()

Re: [strongSwan] How to avoid the parsing of strongswan.conf file and set the configuration options programmatically?

2015-04-22 Thread Martin Willi
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

Re: [strongSwan] How to avoid the parsing of strongswan.conf file and set the configuration options programmatically?

2015-04-22 Thread Chinmaya Dwibedy
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 mar...@strongswan.org wrote: Hi,   set_strongswan_conf_options(lfile);   system(starter --daemon charon); You can't set