Lines Matching refs:ret
35 ret=0
37 -y "md5:$md5" @10.53.0.1 soa -p 5300 > dig.out.md5.old || ret=1
38 grep -i "md5.*TSIG.*NOERROR" dig.out.md5.old > /dev/null || ret=1
39 if [ $ret -eq 1 ] ; then
44 ret=0
46 -y "hmac-md5:md5:$md5" @10.53.0.1 soa -p 5300 > dig.out.md5.new || ret=1
47 grep -i "md5.*TSIG.*NOERROR" dig.out.md5.new > /dev/null || ret=1
48 if [ $ret -eq 1 ] ; then
53 ret=0
55 -y "hmac-sha1:sha1:$sha1" @10.53.0.1 soa -p 5300 > dig.out.sha1 || ret=1
56 grep -i "sha1.*TSIG.*NOERROR" dig.out.sha1 > /dev/null || ret=1
57 if [ $ret -eq 1 ] ; then
62 ret=0
64 -y "hmac-sha224:sha224:$sha224" @10.53.0.1 soa -p 5300 > dig.out.sha224 || ret=1
65 grep -i "sha224.*TSIG.*NOERROR" dig.out.sha224 > /dev/null || ret=1
66 if [ $ret -eq 1 ] ; then
71 ret=0
73 -y "hmac-sha256:sha256:$sha256" @10.53.0.1 soa -p 5300 > dig.out.sha256 || ret=1
74 grep -i "sha256.*TSIG.*NOERROR" dig.out.sha256 > /dev/null || ret=1
75 if [ $ret -eq 1 ] ; then
80 ret=0
82 -y "hmac-sha384:sha384:$sha384" @10.53.0.1 soa -p 5300 > dig.out.sha384 || ret=1
83 grep -i "sha384.*TSIG.*NOERROR" dig.out.sha384 > /dev/null || ret=1
84 if [ $ret -eq 1 ] ; then
89 ret=0
91 -y "hmac-sha512:sha512:$sha512" @10.53.0.1 soa -p 5300 > dig.out.sha512 || ret=1
92 grep -i "sha512.*TSIG.*NOERROR" dig.out.sha512 > /dev/null || ret=1
93 if [ $ret -eq 1 ] ; then
103 ret=0
105 -y "hmac-md5-80:md5-trunc:$md5" @10.53.0.1 soa -p 5300 > dig.out.md5.trunc || ret=1
106 grep -i "md5-trunc.*TSIG.*NOERROR" dig.out.md5.trunc > /dev/null || ret=1
107 if [ $ret -eq 1 ] ; then
112 ret=0
114 -y "hmac-sha1-80:sha1-trunc:$sha1" @10.53.0.1 soa -p 5300 > dig.out.sha1.trunc || ret=1
115 grep -i "sha1.*TSIG.*NOERROR" dig.out.sha1.trunc > /dev/null || ret=1
116 if [ $ret -eq 1 ] ; then
121 ret=0
123 -y "hmac-sha224-112:sha224-trunc:$sha224" @10.53.0.1 soa -p 5300 > dig.out.sha224.trunc || ret=1
124 grep -i "sha224-trunc.*TSIG.*NOERROR" dig.out.sha224.trunc > /dev/null || ret=1
125 if [ $ret -eq 1 ] ; then
130 ret=0
132 -y "hmac-sha256-128:sha256-trunc:$sha256" @10.53.0.1 soa -p 5300 > dig.out.sha256.trunc || ret=1
133 grep -i "sha256-trunc.*TSIG.*NOERROR" dig.out.sha256.trunc > /dev/null || ret=1
134 if [ $ret -eq 1 ] ; then
139 ret=0
141 -y "hmac-sha384-192:sha384-trunc:$sha384" @10.53.0.1 soa -p 5300 > dig.out.sha384.trunc || ret=1
142 grep -i "sha384-trunc.*TSIG.*NOERROR" dig.out.sha384.trunc > /dev/null || ret=1
143 if [ $ret -eq 1 ] ; then
148 ret=0
150 -y "hmac-sha512-256:sha512-trunc:$sha512" @10.53.0.1 soa -p 5300 > dig.out.sha512.trunc || ret=1
151 grep -i "sha512-trunc.*TSIG.*NOERROR" dig.out.sha512.trunc > /dev/null || ret=1
152 if [ $ret -eq 1 ] ; then
163 ret=0
165 -y "hmac-md5-80:md5:$md5" @10.53.0.1 soa -p 5300 > dig.out.md5-80 || ret=1
166 grep -i "md5.*TSIG.*BADTRUNC" dig.out.md5-80 > /dev/null || ret=1
167 if [ $ret -eq 1 ] ; then
172 ret=0
174 -y "hmac-sha1-80:sha1:$sha1" @10.53.0.1 soa -p 5300 > dig.out.sha1-80 || ret=1
175 grep -i "sha1.*TSIG.*BADTRUNC" dig.out.sha1-80 > /dev/null || ret=1
176 if [ $ret -eq 1 ] ; then
181 ret=0
183 -y "hmac-sha224-112:sha224:$sha224" @10.53.0.1 soa -p 5300 > dig.out.sha224-112 || ret=1
184 grep -i "sha224.*TSIG.*BADTRUNC" dig.out.sha224-112 > /dev/null || ret=1
185 if [ $ret -eq 1 ] ; then
190 ret=0
192 -y "hmac-sha256-128:sha256:$sha256" @10.53.0.1 soa -p 5300 > dig.out.sha256-128 || ret=1
193 grep -i "sha256.*TSIG.*BADTRUNC" dig.out.sha256-128 > /dev/null || ret=1
194 if [ $ret -eq 1 ] ; then
199 ret=0
201 -y "hmac-sha384-192:sha384:$sha384" @10.53.0.1 soa -p 5300 > dig.out.sha384-192 || ret=1
202 grep -i "sha384.*TSIG.*BADTRUNC" dig.out.sha384-192 > /dev/null || ret=1
203 if [ $ret -eq 1 ] ; then
208 ret=0
210 -y "hmac-sha512-256:sha512:$sha512" @10.53.0.1 soa -p 5300 > dig.out.sha512-256 || ret=1
211 grep -i "sha512.*TSIG.*BADTRUNC" dig.out.sha512-256 > /dev/null || ret=1
212 if [ $ret -eq 1 ] ; then
217 ret=0
219 -y "badalgo:invalid:$sha512" @10.53.0.1 soa -p 5300 > dig.out.badalgo 2>&1 || ret=1
220 grep -i "Couldn't create key invalid: algorithm is unsupported" dig.out.badalgo > /dev/null || ret=1
221 if [ $ret -eq 1 ] ; then
226 ret=0
228 -y "hmac-sha1:sha1:$sha1" @10.53.0.1 txt -p 5300 > dig.out.large 2>&1 || ret=1
229 grep "flags:.* tc[ ;]" dig.out.large > /dev/null || ret=1
230 grep "status: NOERROR" dig.out.large > /dev/null || ret=1
231 grep "EDNS:" dig.out.large > /dev/null || ret=1
232 grep -i "sha1.*TSIG.*NOERROR" dig.out.sha1 > /dev/null || ret=1
233 if [ $ret -eq 1 ] ; then