Hello All,<br><br>I'm using the StrongSwan VPN Client on Android for establishing an IPSec tunnel in my solution.<br>However,
I want to do some changes in the native code of libandroidbridge and
hence I need to rebuild the libraries (.sos) required for the VPN
Client.<br>
When I built the Strongswan's native libraries with Android's ICS source
code, I'm getting some errors while running on Non-rooted and Samsung
Galaxy S3 devices.<br><br> Following is an snippet of the error logs:<br>
<br>01-07 11:29:26.861: D/SM_SS_Integration(4539): ******************************<div id=":xj">*******************<br>01-07 11:29:26.861: D/SM_SS_Integration(4539): ************** VPN Service connecting !!<br>01-07 11:29:26.861: D/CharonVpnService(4539): creating a new default builder<br>
01-07 11:29:26.871: I/charon(4539): 00[LIB] plugin 'pkcs8' failed to
load: Cannot load library: load_library[1092]: Library
'/ipsec/libstrongswan-pkcs8.so' not found<br>01-07 11:29:26.881: I/charon(4539): 00[NET] unable to bind socket: Permission denied<br>
01-07 11:29:26.881: I/charon(4539): 00[NET] could not open IPv6 socket, IPv6 disabled<br>01-07 11:29:26.881: I/charon(4539): 00[NET] unable to bind socket: Permission denied<br>01-07 11:29:26.881: I/charon(4539): 00[NET] could not open IPv4 socket, IPv4 disabled<br>
01-07 11:29:26.881: I/charon(4539): 00[NET] could not create any sockets<br>01-07 11:29:26.881: I/charon(4539): 00[CFG] failed to get Android control socket<br>01-07 11:29:26.881: I/charon(4539): 00[CFG] could not bind stroke socket: Permission denied<br>
01-07 11:29:26.891: I/charon(4539): 00[DMN] loaded plugins:
androidbridge charon android-log openssl fips-prf random nonce pubkey
pkcs1 pem xcbc hmac kernel-netlink socket-default android stroke
eap-identity eap-mschapv2 eap-md5 eap-gtc<br>
01-07 11:29:26.891: I/charon(4539): 00[JOB] spawning 16 worker threads<br>01-07 11:29:26.891: I/CharonVpnService(4539): charon started<br><span style="color:rgb(255,0,0)">01-07 11:29:26.891: I/charon(4539): 11[NET] no socket implementation registered, receiving failed</span><br>
01-07 11:29:27.722: I/charon(4539): 11[IKE] initiating IKE_SA android[1] to 50.56.28.47<br>01-07 11:29:27.972: I/charon(4539): 11[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ]<br>01-07 11:29:27.972: I/charon(4539): 11[NET] sending packet: from 192.168.3.101[0] to 50.56.28.47[500]<br>
<span style="color:rgb(255,0,0)">01-07 11:29:27.972: I/charon(4539): 12[NET] no socket implementation registered, sending failed</span><br><br><br>Is this some kind of known issue or I'm missing something while building the libraries?<br>
The same libraries works fine with Strongswan VPN Client on Galaxy
Nexus( Rooted) , but doesn't works on non-rooted devices and Samsung
Galaxy S3.<br>I'm using strongswan-strongswan-014d007 src code to build the libraries.<br>
<br>Looking fwd for a reply on this.<br><br>Thanks<br>Deepika</div>