fixed 64 bit issue
[strongswan.git] / src / ipsec / ipsec.in
index 26c6eb2..a962e13 100755 (executable)
@@ -115,16 +115,17 @@ listalgs|listpubkeys|listaacerts|\
 listocspcerts|listacerts|listgroups|\
 listcainfos|listocsp|listcards|\
 purgeocsp|rereadsecrets|rereadgroups|\
-rereadcacerts|rereadaacerts|rereadocspcerts|\
-rereadacerts|rereadcrls|rereadall)
+rereadaacerts|rereadocspcerts|rereadacerts)
        op="$1"
        shift
        if test -e $IPSEC_PLUTO_PID
        then
                $IPSEC_WHACK "$@" "--$op"
        fi
+       exit 0
        ;;
-listcerts|listcacerts|listcrls|listall)
+listcerts|listcacerts|listcrls|listall|\
+rereadcacerts|rereadcrls|rereadall)
        op="$1"
        shift
        if test -e $IPSEC_PLUTO_PID
@@ -174,6 +175,10 @@ route|unroute)
        then
                $IPSEC_WHACK --name "$1" "--$op"
        fi
+       if test -e $IPSEC_CHARON_PID
+       then
+               $IPSEC_STROKE "$op" "$1"
+       fi
        exit 0
        ;;
 scencrypt|scdecrypt)