crypto_factory algorithm enumeration API

implementation of "ipsec listalgs"
This commit is contained in:
Martin Willi
2008-08-28 09:24:42 +00:00
parent 8bbc7ca710
commit 9482208633
8 changed files with 294 additions and 102 deletions
+8 -8
View File
@@ -133,19 +133,19 @@ down-srcip)
;;
listalgs|listpubkeys|\listcards|\rereadgroups)
op="$1"
rc=7
shift
if [ -e $IPSEC_PLUTO_PID ]
then
$IPSEC_WHACK "$@" "--$op"
exit "$?"
else
if [ -e $IPSEC_CHARON_PID ]
then
exit 3
else
exit 7
fi
rc="$?"
fi
if [ -e $IPSEC_CHARON_PID ]
then
$IPSEC_STROKE "$op"
rc="$?"
fi
exit "$rc"
;;
listcerts|listcacerts|listaacerts|\
listacerts|listgroups|listocspcerts|\