mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
fixes for "SC2004: $/${} is unnecessary on arithmetic variables."
In cipherscan line 451: for ((i=0; i<$certificate_count; i=i+1 )); do ^-- SC2004: $/${} is unnecessary on arithmetic variables. In cipherscan line 603: cipherbenchms="$((t/1000/$BENCHMARKITER))" ^-- SC2004: $/${} is unnecessary on arithmetic variables.
This commit is contained in:
parent
21871b5bd7
commit
f002b3573a
@ -448,7 +448,7 @@ test_cipher_on_target() {
|
|||||||
local certificate_count=$certs_found
|
local certificate_count=$certs_found
|
||||||
debug "server presented $certificate_count certificates"
|
debug "server presented $certificate_count certificates"
|
||||||
local i
|
local i
|
||||||
for ((i=0; i<$certificate_count; i=i+1 )); do
|
for ((i=0; i<certificate_count; i=i+1 )); do
|
||||||
|
|
||||||
# extract i'th certificate
|
# extract i'th certificate
|
||||||
local cert="${current_raw_certificates[$i]}"
|
local cert="${current_raw_certificates[$i]}"
|
||||||
@ -600,7 +600,7 @@ bench_cipher() {
|
|||||||
local t="$(($(date +%s%N) - t))"
|
local t="$(($(date +%s%N) - t))"
|
||||||
verbose "Benchmarking done in $t nanoseconds"
|
verbose "Benchmarking done in $t nanoseconds"
|
||||||
# Microseconds
|
# Microseconds
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user