summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-02-14 13:28:33 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-02-14 13:28:33 +0000
commitef7e71925307485205d8ca175668a530397e8dfa (patch)
tree2c93731478106aec745b596d22ef23f7fbac5d2c
parentdfd1223cdd9f102cb1c1c1dc7da599b2cdb9a105 (diff)
Print only short output when ssl handshaking fails through Tor
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@587 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xtor-exit-ssl-check4
1 files changed, 4 insertions, 0 deletions
diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check
index 87a5b00..ed9aaa7 100755
--- a/tor-exit-ssl-check
+++ b/tor-exit-ssl-check
@@ -190,6 +190,10 @@ while : ; do
[ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor" "$tmpdir/cert-direct" || true
echo "RESULT: $server: Connect failed"
errors=1
+ elif egrep '^[0-9]*:error:.*:ssl handshake failure:' "$tmpdir/cert-tor" > /dev/null; then
+ [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor" "$tmpdir/cert-direct" || true
+ echo "RESULT: $server: SSL Handshake failed"
+ errors=1
else
echo "RESULT: $server: differences!"
[ "$verbose" = 0 ] || echo "===="