Skip to content

Commit c38f468

Browse files
author
David Cooper
authored
Avoid subshell overhead
This commit removes the use of parenthesis in two expressions in run_fs() in order to avoid subshell overhead.
1 parent 102e4fb commit c38f468

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10929,7 +10929,7 @@ run_fs() {
1092910929
# Versions of TLS prior to 1.3 close the connection if the client does not support the curve
1093010930
# used in the certificate. The easiest solution is to move the curves to the end of the list.
1093110931
# instead of removing them from the ClientHello. This is only needed if there is no RSA certificate.
10932-
if (! "$HAS_TLS13" || [[ "$proto" == "-no_tls1_3" ]]) && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
10932+
if { ! "$HAS_TLS13" || [[ "$proto" == "-no_tls1_3" ]]; } && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
1093310933
while true; do
1093410934
curves_to_test=""
1093510935
for (( i=low; i < high; i++ )); do
@@ -10999,7 +10999,7 @@ run_fs() {
1099910999
# Versions of TLS prior to 1.3 close the connection if the client does not support the curve
1100011000
# used in the certificate. The easiest solution is to move the curves to the end of the list.
1100111001
# instead of removing them from the ClientHello. This is only needed if there is no RSA certificate.
11002-
if ([[ "$proto" == 03 ]] && [[ ! "$ecdhe_cipher_list" == *RSA* ]]); then
11002+
if [[ "$proto" == 03 ]] && [[ ! "$ecdhe_cipher_list" == *RSA* ]]; then
1100311003
while true; do
1100411004
curves_to_test=""
1100511005
for (( i=0; i < nr_curves; i++ )); do

0 commit comments

Comments
 (0)