summaryrefslogtreecommitdiff
path: root/tor-exit-ssl-check
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-03-11 15:39:28 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-03-11 15:39:28 +0000
commit4508ebf108b85b737b637cd72a39a424f0e86bc8 (patch)
tree1dc949a8622c4eca964356ac5cc852fa073908f9 /tor-exit-ssl-check
parent4e527972437856b5a119376cfa029a7772b8ece4 (diff)
print hostname in result line
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@592 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'tor-exit-ssl-check')
-rwxr-xr-xtor-exit-ssl-check8
1 files changed, 4 insertions, 4 deletions
diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check
index 1a62eec..ebb388b 100755
--- a/tor-exit-ssl-check
+++ b/tor-exit-ssl-check
@@ -193,18 +193,18 @@ while : ; do
egrep -v '(Session-ID|Master-Key|Start Time):' < "$tmpdir/cert-tor-$i" > "$tmpdir/cert-tor-$i.filtered"
if diff "$tmpdir/cert-tor-$i.filtered" "$tmpdir/cert-direct-$i.filtered" > /dev/null; then
- echo "RESULT: $server: No real differences."
+ echo "RESULT[$host]: $server: No real differences."
[ "$verbose" = 0 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true
elif egrep '^connect:errno=' "$tmpdir/cert-tor-$i" > /dev/null; then
[ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true
- echo "RESULT: $server: Connect failed"
+ echo "RESULT[$host]: $server: Connect failed"
errors=$((errors | 0x02))
elif egrep '^[0-9]*:error:.*:ssl handshake failure:' "$tmpdir/cert-tor-$i" > /dev/null; then
[ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true
- echo "RESULT: $server: SSL Handshake failed"
+ echo "RESULT[$host]: $server: SSL Handshake failed"
errors=$((errors | 0x04))
else
- echo "RESULT: $server: differences!"
+ echo "RESULT[$host]: $server: differences!"
[ "$verbose" = 0 ] || echo "===="
[ "$verbose" = 0 ] || echo "Diff:"
diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true