From 990965c69654f3caba5386dfcb876d60c7ce2987 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 16 Jul 2013 06:28:52 +0000 Subject: Use a specific prefix git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@633 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- tor-exit-ssl-check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check index 6af71e0..1a8b98c 100755 --- a/tor-exit-ssl-check +++ b/tor-exit-ssl-check @@ -143,19 +143,19 @@ expect_ok() { fi } -[ -n "$cachedir" ] && find "$cachedir" -mmin +1400 -exec rm '{}' '+' +[ -n "$cachedir" ] && find "$cachedir" -name "tesc3-*" -mmin +1400 -exec rm '{}' '+' for ((i=0; i < ${#targets[@]}; i++)); do host="${targets[$i]}" [ "${host%%+([0-9])}" = "$host" ] && host="$host:443" - if [ -n "$cachedir" ] && [ -e "$cachedir/$host" ] ; then + if [ -n "$cachedir" ] && [ -e "$cachedir/tesc3-$host" ] ; then [ "$verbose" = 0 ] || echo "Using cached certificate for $host." - cp "$cachedir/$host" "$tmpdir/cert-direct-$i" + cp "$cachedir/tesc3-$host" "$tmpdir/cert-direct-$i" else [ "$verbose" = 0 ] || echo "Directly to $host:" openssl s_client -no_ticket -showcerts -connect "$host" < /dev/null 2>&1 | eatdata "$tmpdir/cert-direct-$i" - [ -n "$cachedir" ] && cp "$tmpdir/cert-direct-$i" "$cachedir/$host" + [ -n "$cachedir" ] && cp "$tmpdir/cert-direct-$i" "$cachedir/tesc3-$host" fi egrep -v '(Session-ID|Master-Key|Start Time):' < "$tmpdir/cert-direct-$i" > "$tmpdir/cert-direct-$i.filtered" -- cgit v1.2.3