I have searched all over the internet (including man pages) for a way to open a socket which will be secured with ipsec (using C).
I am interested in controlling and configuring the socket form within the program (internally).
I tried to follow https://blogs.oracle.com/danmcd/entry/put_ipsec_to_work_in but I am using ubuntu 12.04 and it is not Compatible