mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
Replace instances of string-ish [[ -lt ]] with arithmetic (( < )).
This commit is contained in:
parent
34ae0ccab9
commit
b91b153bbd
@ -846,7 +846,7 @@ 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...
|
||||||
if [[ ${#cipherspref[@]} -lt 2 ]]; then
|
if (( ${#cipherspref[@]} < 2 )); then
|
||||||
serverside="True"
|
serverside="True"
|
||||||
return 0
|
return 0
|
||||||
# server supports just two ciphers, so rotate them, that should be enough
|
# server supports just two ciphers, so rotate them, that should be enough
|
||||||
@ -974,7 +974,7 @@ test_curves() {
|
|||||||
|
|
||||||
# server supports just one or none, so it effectively uses server side
|
# server supports just one or none, so it effectively uses server side
|
||||||
# ordering (as it dictates what curves client must support)
|
# ordering (as it dictates what curves client must support)
|
||||||
if [[ ${#tmp_curves[@]} -lt 2 ]]; then
|
if (( ${#tmp_curves[@]} < 2 )); then
|
||||||
curves_ordering="server"
|
curves_ordering="server"
|
||||||
else
|
else
|
||||||
# server supports at least 2 curves, rotate their order, see if
|
# server supports at least 2 curves, rotate their order, see if
|
||||||
|
Loading…
Reference in New Issue
Block a user