From d98f6c6ba51ae8810bd2d035fa89f6ca24eba8fd Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 16 Mar 2015 12:55:41 +0100 Subject: Update/cleanup of external API, allow adding of non user editable profiles --HG-- rename : remoteExample/src/main/assets/hd.conf => remoteExample/src/main/assets/test.conf --- .../main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'remoteExample/src/main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl') diff --git a/remoteExample/src/main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl b/remoteExample/src/main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl index d0791a4a..273a0046 100644 --- a/remoteExample/src/main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl +++ b/remoteExample/src/main/aidl/de/blinkt/openvpn/api/IOpenVPNAPIService.aidl @@ -12,10 +12,14 @@ interface IOpenVPNAPIService { void startProfile (String profileUUID); - /** Use a profile with all certificates etc. embedded */ + /** Use a profile with all certificates etc. embedded, + * old version which does not return the UUID of the addded profile, see + * below for a version that return the UUID on add */ boolean addVPNProfile (String name, String config); - /** start a profile using an config */ + /** start a profile using a config as inline string. Make sure that all needed data is inlined, + * e.g., using ... or ... + * See the OpenVPN manual page for more on inlining files */ void startVPN (String inlineconfig); /** This permission framework is used to avoid confused deputy style attack to the VPN @@ -55,5 +59,8 @@ interface IOpenVPNAPIService { * Before calling this function you should make sure OpenVPN for Android may actually * this function by checking if prepareVPNService returns null; */ boolean protectSocket(in ParcelFileDescriptor fd); - + + + /** Use a profile with all certificates etc. embedded */ + APIVpnProfile addNewVPNProfile (String name, boolean userEditable, String config); } \ No newline at end of file -- cgit v1.2.3