]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated danetool
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 18 Dec 2013 16:57:08 +0000 (17:57 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 18 Dec 2013 16:57:24 +0000 (17:57 +0100)
tests/suite/testdane

index 7ca9bc5654d2fb51ca4430ec8808fa1bf6277fbe..909d6d8ade52ebca6268912f374c4fcda0539191 100755 (executable)
@@ -29,10 +29,13 @@ fi
 
 . $srcdir/../scripts/common.sh
 
-echo "*** Testing bad hosts"
-# Not ok
-HOSTS="bad-hash.dane.verisignlabs.com dane-broken.rd.nic.fr bad-params.dane.verisignlabs.com"
-HOSTS="$HOSTS bad-sig.dane.verisignlabs.com"
+# Fine hosts
+
+echo ""
+echo "*** Testing good hosts ***"
+HOSTS="good.dane.verisignlabs.com www.kumari.net torproject.org"
+HOSTS="$HOSTS nohats.ca"
+# used to work: dane.nox.su torproject.org jhcloos.com
 for i in $HOSTS;do
 echo -n "$i: "
 rm -f tmp
@@ -43,21 +46,19 @@ if [ $? != 0 ];then
 fi
 
 $DANETOOL --load-certificate tmp --check $i >/dev/null 2>&1
-if [ $? = 0 ];then
-       echo "Checking $i should have failed"
+if [ $? != 0 ];then
+       echo "Error checking $i"
        exit 1
 fi
 echo "ok"
 done
 
-# Fine hosts
 
-echo ""
-echo "*** Testing good hosts"
-HOSTS="torproject.org jhcloos.com good.dane.verisignlabs.com \
-www.kumari.net"
-HOSTS="$HOSTS nohats.ca"
-# dane.nox.su
+echo "*** Testing bad hosts ***"
+# Not ok
+# used to work: dane-broken.rd.nic.fr 
+HOSTS="bad-hash.dane.verisignlabs.com bad-params.dane.verisignlabs.com"
+HOSTS="$HOSTS bad-sig.dane.verisignlabs.com"
 for i in $HOSTS;do
 echo -n "$i: "
 rm -f tmp
@@ -68,8 +69,8 @@ if [ $? != 0 ];then
 fi
 
 $DANETOOL --load-certificate tmp --check $i >/dev/null 2>&1
-if [ $? != 0 ];then
-       echo "Error checking $i"
+if [ $? = 0 ];then
+       echo "Checking $i should have failed"
        exit 1
 fi
 echo "ok"