<div dir="ltr"><div><span class="" style="white-space:pre">Dear all,</span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">I was going through strongswan android apk source code and have the following queries.</span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">I could observe the following source code in CharonVpnService.java</span></div><div><span class="" style="white-space:pre"> </span></div><div><br></div><div>static</div><div><span class="" style="white-space:pre"> </span>{</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("strongswan");</div><div><br></div><div><span class="" style="white-space:pre"> </span>if (MainActivity.USE_BYOD)</div><div><span class="" style="white-space:pre"> </span>{</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("tncif");</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("tnccs");</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("imcv");</div><div><span class="" style="white-space:pre"> </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("hydra");</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("charon");</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("ipsec");</div><div><span class="" style="white-space:pre"> </span>System.loadLibrary("androidbridge");</div><div><span class="" style="white-space:pre"> </span>}</div><div><br></div><div>Query: </div><div>1) Does this mean, charon,hydra ,ipsec and android bridge are being already present on the android source code and System.loadLibary searches for them and loads.</div><div><br></div><div>or<br></div><div><br></div><div>2) Strongswan android apk source code, has the source code for these libraries.. While making the apk, these librarires are compiled first and then while CharonVpnService.java is compiled, these librarires are loaded using System.load libarary ?</div><div><br></div><div><br></div><div>Also if the former is correct,</div><div>3) Does it mean AOSP code of android have 'hydra', 'charon', 'ipsec', 'androidbridge' built in to them?</div><div><br></div><div>4) What is the need for 'System.loadLibrary 'ipsec'' when android APK uses libipsec for ESP encryption and decryption.</div><div><br></div><div>Kindly answer my querires seperately.</div><div><br></div><div>Thanks,</div><div>Ravikanth</div><div><br></div><div><br></div>
</div>