travis: Fix openconnect builds by installing groff

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
external: Sync with openconnect rev 6e956a7

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

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
AuthFormHandler: Try to put the cursor somewhere sensible

If there is an empty field, focus it.  If all fields are populated, focus
the first one and move the cursor all the way to the right.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
AuthFormHandler: Fix "rotation accepts input" problem

In BATCH_MODE_EMPTY_ONLY, the check for empty fields is performed every
time the dialog is redrawn.  This means that if the screen is rotated
or if the app switches between foreground->background->foreground and
there is partial form input, the partial entry will be accepted when the
form is redrawn.

The fix is to remember the allFilled state for the lifetime of the auth
form.

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