<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1429710139512_7928"><span></span><br></div><div id="yui_3_16_0_1_1429710139512_7927" dir="ltr"><span id="yui_3_16_0_1_1429710139512_7926">Thank you Martin for your valuable response. Let me go thru the charon-xpc under src/frontends/osx. </span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, April 22, 2015 7:28 PM, Martin Willi <martin@strongswan.org> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">Hi,<br clear="none"><br clear="none">> set_strongswan_conf_options(lfile);<br clear="none">> system("starter --daemon charon");<br clear="none"><br clear="none">You can't set options in the current process, and then expect that these<br clear="none">options get inherited to a child process spawned using system() or any<br clear="none">exec*() function.<br clear="none"><br clear="none">If you want to set strongswan.conf options programatically, you'll have<br clear="none">to do that early in the process you want to control, for example in<br clear="none">charons main(). Some libcharon based programs already do that, for<br clear="none">example charon-xpc under src/frontends/osx.<div class="yqt5314752557" id="yqtfd75817"><br clear="none"><br clear="none">Regards</div><br clear="none">Martin<div class="yqt5314752557" id="yqtfd93766"><br clear="none"><br clear="none"><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>