From 26aa8f940806bb2e0cdf5639e6bba84e195f7a25 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Fri, 10 Oct 2014 16:55:34 -0400 Subject: [PATCH] cleanups --- cipherscan | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cipherscan b/cipherscan index 1a7146b..8bca762 100755 --- a/cipherscan +++ b/cipherscan @@ -8,6 +8,7 @@ DOBENCHMARK=0 BENCHMARKITER=30 OPENSSLBIN="$(dirname $0)/openssl" + # find a list of trusted CAs on the local system, or use the provided list if [ -z "$CACERTS" ]; then for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do @@ -64,7 +65,6 @@ EXAMPLES: $0 -starttls xmpp jabber.ccc.de:5222 " } - verbose() { if [ $VERBOSE != 0 ]; then echo "$@" >&2 @@ -180,7 +180,6 @@ test_cipher_on_target() { fi } - # Calculate the average handshake time for a specific ciphersuite bench_cipher() { local ciphersuite="$1" @@ -201,7 +200,6 @@ bench_cipher() { cipherbenchms="$((t/1000/$BENCHMARKITER))" } - # Connect to the target and retrieve the chosen cipher # recursively until the connection fails get_cipher_pref() { @@ -229,7 +227,6 @@ get_cipher_pref() { sleep $DELAY } - display_results_in_terminal() { # Display the results ctr=1 @@ -318,7 +315,6 @@ display_results_in_terminal() { fi } - display_results_in_json() { # Display the results in json ctr=0 @@ -341,7 +337,6 @@ display_results_in_json() { } test_serverside_ordering() { - local ciphersuite="" local prefered="" # server supports only one cipher or no ciphers, so it effectively uses server side ordering...