mirror of
https://github.com/mozilla/cipherscan.git
synced 2026-02-05 22:55:15 +01:00
fixes for "SC2145: Argument mixes string and array. Use * or separate argument."
In cipherscan line 941:
verbose "Server supported curves: ${tmp_curves[@]}"
^-- SC2145: Argument mixes string and array. Use * or separate argument.
In cipherscan line 968:
verbose "ephem_data: ${ephem_data[@]}"
^-- SC2145: Argument mixes string and array. Use * or separate argument.
This commit is contained in:
@@ -938,7 +938,7 @@ test_curves() {
|
|||||||
#
|
#
|
||||||
|
|
||||||
local tmp_curves=(${current_curves//,/ })
|
local tmp_curves=(${current_curves//,/ })
|
||||||
verbose "Server supported curves: ${tmp_curves[@]}"
|
verbose "Server supported curves: ${tmp_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)
|
||||||
@@ -965,7 +965,7 @@ test_curves() {
|
|||||||
else
|
else
|
||||||
local ephem_data=(${current_pfs//,/ })
|
local ephem_data=(${current_pfs//,/ })
|
||||||
verbose "Server selected $current_cipher with $current_pfs"
|
verbose "Server selected $current_cipher with $current_pfs"
|
||||||
verbose "ephem_data: ${ephem_data[@]}"
|
verbose "ephem_data: ${ephem_data[*]}"
|
||||||
|
|
||||||
if [[ ${ephem_data[0]} =~ ECDH ]]; then
|
if [[ ${ephem_data[0]} =~ ECDH ]]; then
|
||||||
verbose "Server did select ${ephem_data[1]} curve"
|
verbose "Server did select ${ephem_data[1]} curve"
|
||||||
|
|||||||
Reference in New Issue
Block a user