mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-16 11:53:43 +01:00
fold some long lines
long lines hard to read, make Hulk sad
This commit is contained in:
parent
94efc235d0
commit
7834cd0748
@ -564,7 +564,8 @@ test_cipher_on_target() {
|
|||||||
# signed ones)
|
# signed ones)
|
||||||
local saved="False"
|
local saved="False"
|
||||||
if ${OPENSSLBIN} verify "${trust_source[@]}" \
|
if ${OPENSSLBIN} verify "${trust_source[@]}" \
|
||||||
-untrusted <(printf "%s" "${current_raw_certificates[@]}") <(echo "$cert") 2>/dev/null | \
|
-untrusted <(printf "%s" "${current_raw_certificates[@]}") \
|
||||||
|
<(echo "$cert") 2>/dev/null | \
|
||||||
grep ': OK$' >/dev/null; then
|
grep ': OK$' >/dev/null; then
|
||||||
|
|
||||||
# if the certificate is an intermediate CA it may be useful
|
# if the certificate is an intermediate CA it may be useful
|
||||||
@ -661,7 +662,8 @@ test_cipher_on_target() {
|
|||||||
# 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"
|
||||||
local sslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS -connect $TARGET -cipher $ciphersuite"
|
local sslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS"
|
||||||
|
sslcommand+=" -connect $TARGET -cipher $ciphersuite"
|
||||||
local t="$(date +%s%N)"
|
local t="$(date +%s%N)"
|
||||||
verbose "Benchmarking handshake on '$TARGET' with ciphersuite '$ciphersuite'"
|
verbose "Benchmarking handshake on '$TARGET' with ciphersuite '$ciphersuite'"
|
||||||
for i in $(seq 1 $BENCHMARKITER); do
|
for i in $(seq 1 $BENCHMARKITER); do
|
||||||
|
Loading…
Reference in New Issue
Block a user