tlslink / sslcon

Go implementation of the OpenConnect VPN Protocol for client side development. Engine for AnyLink Secure Client.
MIT License
38 stars 23 forks source link

Android support #11

Open lotux opened 4 months ago

lotux commented 4 months ago

I was wondering if android support can be added too, since android has don't allow direct access to tun device and only allow to read and write from FD provided by Android VPNService, in openconnect project, this is done by setup_tun_fd were it only take File Descriptor ID from caller

this will allow to use this project as a library in an Android application as well

itviewer commented 4 months ago

If you have enough time and patience, this is certainly possible. Please refer to the wireguard Android client, which is also based on the Go language and is used as a library for Java to call. It just needs some refactoring to be used as a library