This commit is contained in:
Julien Vehent 2014-10-10 16:55:34 -04:00
parent 7d2c8b4cad
commit 26aa8f9408
1 changed files with 1 additions and 6 deletions

View File

@ -8,6 +8,7 @@
DOBENCHMARK=0 DOBENCHMARK=0
BENCHMARKITER=30 BENCHMARKITER=30
OPENSSLBIN="$(dirname $0)/openssl" OPENSSLBIN="$(dirname $0)/openssl"
# find a list of trusted CAs on the local system, or use the provided list # find a list of trusted CAs on the local system, or use the provided list
if [ -z "$CACERTS" ]; then if [ -z "$CACERTS" ]; then
for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do 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() { verbose() {
if [ $VERBOSE != 0 ]; then if [ $VERBOSE != 0 ]; then
echo "$@" >&2 echo "$@" >&2
@ -180,7 +180,6 @@ test_cipher_on_target() {
fi fi
} }
# Calculate the average handshake time for a specific ciphersuite # Calculate the average handshake time for a specific ciphersuite
bench_cipher() { bench_cipher() {
local ciphersuite="$1" local ciphersuite="$1"
@ -201,7 +200,6 @@ bench_cipher() {
cipherbenchms="$((t/1000/$BENCHMARKITER))" cipherbenchms="$((t/1000/$BENCHMARKITER))"
} }
# Connect to the target and retrieve the chosen cipher # Connect to the target and retrieve the chosen cipher
# recursively until the connection fails # recursively until the connection fails
get_cipher_pref() { get_cipher_pref() {
@ -229,7 +227,6 @@ get_cipher_pref() {
sleep $DELAY sleep $DELAY
} }
display_results_in_terminal() { display_results_in_terminal() {
# Display the results # Display the results
ctr=1 ctr=1
@ -318,7 +315,6 @@ display_results_in_terminal() {
fi fi
} }
display_results_in_json() { display_results_in_json() {
# Display the results in json # Display the results in json
ctr=0 ctr=0
@ -341,7 +337,6 @@ display_results_in_json() {
} }
test_serverside_ordering() { test_serverside_ordering() {
local ciphersuite="" local ciphersuite=""
local prefered="" local prefered=""
# server supports only one cipher or no ciphers, so it effectively uses server side ordering... # server supports only one cipher or no ciphers, so it effectively uses server side ordering...