external: Sync with openconnect rev 6df7029

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
libs: Sync with latest openconnect sources
ConnectionEditorFragment: Restructure FileSelect handling code

Make the code a little more generic so it will be easy to add a
TokenImport activity.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
FileSelect: Add FORCE_INLINE_SELECTION flag

There are cases where we always want FileSelect to return the string
data from the file, not a filename.  So this flag will cause "Copy into
profile" to be checked, and grayed out.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Create new TokenImportActivity for editing software tokens

Change the VPN preferences editor to use the new activity instead of
the regular string value editors.  Allow importing the token string from
a file, and perform some basic sanitization on the data.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
external: Add libstoken to "utils" build

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
external: Build stoken files and copy them into libs/ and assets/

This includes both the native library and the .jar wrapper.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
external: Sync with stoken rev 4858c2e

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
libs: Sync with the latest stoken sources

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
TokenImportActivity: Use libstoken to validate and decrypt SecurID tokens

Replace the dummy checks with real library calls.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
VPNProfileList: Fix a nuisance warning

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
TokenImportActivity: Add "Clear token" button

Let the user erase the token and revert back to manual password entry,
if desired.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>