openconnect: Added configuration options for hash and user cert/key pairs

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2014-06-04 23:17:54 +02:00
parent d0eb4566b4
commit 51c1c55125
3 changed files with 28 additions and 12 deletions
+5 -6
View File
@@ -49,9 +49,8 @@
do_connect() {
if [ -n "$CISCO_BANNER" ]; then
echo "Connect Banner:"
echo "$CISCO_BANNER" | while read LINE ; do echo "|" "$LINE" ; done
echo
logger -t openconnect "Connect Banner:"
logger -t openconnect "$CISCO_BANNER" | while read LINE ; do logger -t openconnect "|" "$LINE" ; done
fi
proto_init_update "$TUNDEV" 1
@@ -126,11 +125,11 @@ do_disconnect() {
#### Main
if [ -z "$reason" ]; then
echo "this script must be called from vpnc" 1>&2
logger -t openconnect "this script must be called from vpnc" 1>&2
exit 1
fi
if [ -z "$INTERFACE" ]; then
echo "this script must be called for an active interface"
logger -t openconnect "this script must be called for an active interface"
exit 1
fi
@@ -148,7 +147,7 @@ case "$reason" in
reconnect)
;;
*)
echo "unknown reason '$reason'. Maybe vpnc-script is out of date" 1>&2
logger -t openconnect "unknown reason '$reason'. Maybe vpnc-script is out of date" 1>&2
exit 1
;;
esac