]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Add openconnect_get_connect_url(), use it in --authenticate output connect-url
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 14 May 2021 10:57:11 +0000 (11:57 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 14 May 2021 15:56:51 +0000 (16:56 +0100)
commitec6c0caed28ebf4f60984a49ce3122196f9c87fa
treef39287975ccd8b0cf80a1b8804a426564382c9a5
parentf77727a8d89382cc405ed8699f2c418965e9c4c3
Add openconnect_get_connect_url(), use it in --authenticate output

As noted in the long comment in openconnect.h, we need to provide the
actual *URL* for the connection including the real hostname. And that
means we also need to provide a suitable --resolve argument to pass on
to the connecting openconnect.

Add openconnect_get_connect_url() for the GUI auth-dialogs to use, and
make 'openconnect --authenticate' emit the same. If we just put it into
$HOST that might break existing setups that don't use the newly-added
$RESOLVE variable too, so put it in another new variable $CONNECT_URL
and leave the original $HOST alone.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
java/src/org/infradead/libopenconnect/LibOpenConnect.java
jni.c
libopenconnect.map.in
library.c
main.c
openconnect-internal.h
openconnect.h
www/changelog.xml