implemented ipsec listalgs as a stroke command

This commit is contained in:
Andreas Steffen
2008-10-08 07:00:13 +00:00
parent 51358f9f72
commit d1cbe55127
7 changed files with 81 additions and 21 deletions
+8 -8
View File
@@ -131,22 +131,22 @@ down-srcip)
fi
exit "$rc"
;;
listalgs|listpubkeys|\listcards|\rereadgroups)
listcards|rereadgroups)
op="$1"
rc=7
shift
if [ -e $IPSEC_PLUTO_PID ]
then
$IPSEC_WHACK "$@" "--$op"
rc="$?"
fi
if [ -e $IPSEC_CHARON_PID ]
then
$IPSEC_STROKE "$op"
rc="$?"
fi
exit "$rc"
if [ -e $IPSEC_CHARON_PID ]
then
exit 3
else
exit 7
fi
;;
listalgs|\listpubkeys|\
listcerts|listcacerts|listaacerts|\
listacerts|listgroups|listocspcerts|\
listcainfos|listcrls|listocsp|listall|\