recognize ipsec purgeike command
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 May 2009 11:32:48 +0000 (13:32 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 May 2009 11:32:48 +0000 (13:32 +0200)
src/ipsec/ipsec.in

index 8e9a523..1da3c2d 100755 (executable)
@@ -65,7 +65,7 @@ case "$1" in
        echo "  rereadsecrets|rereadgroups"
        echo "  rereadcacerts|rereadaacerts|rereadocspcerts"
        echo "  rereadacerts|rereadcrls|rereadall"
-       echo "  purgeocsp"
+       echo "  purgeocsp|purgeike"
        echo "  scencrypt|scdecrypt <value> [--inbase <base>] [--outbase <base>] [--keyid <id>]"
        echo "  openac"
        echo "  pluto"
@@ -182,6 +182,15 @@ rereadall|purgeocsp)
        fi
        exit "$rc"
        ;;
+purgeike)
+       rc=7
+       if [ -e $IPSEC_CHARON_PID ]
+       then
+               $IPSEC_STROKE purgeike
+               rc="$?"
+       fi
+       exit "$rc"
+       ;;
 ready)
        shift
        if [ -e $IPSEC_PLUTO_PID ]