Lines Matching refs:ret
19 ret=0
20 dhkeyname=`$KEYGEN -T KEY -a DH -b 768 -n host -r $RANDFILE client` || ret=1
21 if [ $ret != 0 ]; then
23 status=`expr $status + $ret`
27 status=`expr $status + $ret`
32 ret=0
33 keyname=`$KEYCREATE $dhkeyname $owner` || ret=1
34 if [ $ret != 0 ]; then
36 status=`expr $status + $ret`
40 status=`expr $status + $ret`
43 ret=0
44 $DIG $DIGOPTS . ns -k $keyname > dig.out.1 || ret=1
45 grep "status: NOERROR" dig.out.1 > /dev/null || ret=1
46 grep "TSIG.*hmac-md5.*NOERROR" dig.out.1 > /dev/null || ret=1
47 grep "Some TSIG could not be validated" dig.out.1 > /dev/null && ret=1
48 if [ $ret != 0 ]; then
51 status=`expr $status + $ret`
54 ret=0
55 $KEYDELETE $keyname || ret=1
56 if [ $ret != 0 ]; then
59 status=`expr $status + $ret`
62 ret=0
63 $DIG $DIGOPTS . ns -k $keyname > dig.out.2 || ret=1
64 grep "status: NOERROR" dig.out.2 > /dev/null && ret=1
65 grep "TSIG.*hmac-md5.*NOERROR" dig.out.2 > /dev/null && ret=1
66 grep "Some TSIG could not be validated" dig.out.2 > /dev/null || ret=1
67 if [ $ret != 0 ]; then
70 status=`expr $status + $ret`
74 ret=0
75 keyname=`$KEYCREATE $dhkeyname bar.example.` || ret=1
76 if [ $ret != 0 ]; then
78 status=`expr $status + $ret`
82 status=`expr $status + $ret`
85 ret=0
87 grep "key \"bar.example.server" rndc.out.1 > /dev/null || ret=1
88 if [ $ret != 0 ]; then
91 status=`expr $status + $ret`
94 ret=0
95 $DIG $DIGOPTS -k $keyname txt.example txt > dig.out.3 || ret=1
96 grep "status: NOERROR" dig.out.3 > /dev/null || ret=1
97 if [ $ret != 0 ]; then
100 status=`expr $status + $ret`
103 ret=0
104 $RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 tsig-delete bar.example.server > /dev/null || ret=1
106 grep "key \"bar.example.server" rndc.out.2 > /dev/null && ret=1
107 $DIG $DIGOPTS -k $keyname txt.example txt > dig.out.4 || ret=1
108 grep "TSIG could not be validated" dig.out.4 > /dev/null || ret=1
109 if [ $ret != 0 ]; then
112 status=`expr $status + $ret`
115 ret=0
116 keyname=`$KEYCREATE $dhkeyname bar.example.` || ret=1
117 if [ $ret != 0 ]; then
119 status=`expr $status + $ret`
123 status=`expr $status + $ret`
126 ret=0
128 grep "key \"bar.example.server" rndc.out.3 > /dev/null || ret=1
129 if [ $ret != 0 ]; then
132 status=`expr $status + $ret`
135 ret=0
136 $DIG $DIGOPTS -k $keyname txt.example txt > dig.out.5 || ret=1
137 grep "status: NOERROR" dig.out.5 > /dev/null || ret=1
138 if [ $ret != 0 ]; then
141 status=`expr $status + $ret`