2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 14:23:41 +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:
Richard Soderberg 2015-09-03 06:11:40 -07:00
parent bbb3496627
commit 3664b1a199

View File

@ -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"