external: Sync with openconnect rev 615076f2c

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

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
OpenConnectManagementThread: Cache "just once"-accepted server certs

Don't prompt repeatedly for the same cert.  And if a cert prompt shows
up post-authentication (e.g. on reconnect), log the attempt and reject it.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Refactor and simplify ProfileManager

Track known VPN profiles by scanning the shared_prefs directory when the
app starts up, and after manipulation.  Fix various "can't rename
profile" bugs.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Remove unused preference files from OpenVpn

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Rename "Preference" classes to "ConnectionEditor" for clarity

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
ProfileManager: Remove redundant get() method

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
OnBootReceiver: Fix intent extra data

The intent was getting lost because the extra data was labeled
incorrectly.  Also, add some logging so it's easier to see what's going
on.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Raise notification if user input is needed when the app is backgrounded

If the app needs e.g. logins/passwords but is not in the foreground,
raise a notification.  Required for connect-on-boot as the user has no
other way of knowing we are waiting for input.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
CertWarningDialog: Fix incorrect parameter order

This was storing the hostname instead of the SHA1 in the prefs.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
AuthFormHandler: Handle batch mode inside earlyReturn()

earlyReturn() doesn't require a UI/Activity to be running, so it can
happen entirely in the background.  This is necessary for unattended
connections.

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