diff --git a/testssl.sh b/testssl.sh index abbc213..cd2ebd2 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2515,7 +2515,7 @@ run_cipher_per_proto() { nr_ciphers=0 if "$using_sockets" || [[ $OSSL_VER_MAJOR -lt 1 ]]; then for (( i=0; i < TLS_NR_CIPHERS; i++ )); do - hexc="$(tolower "${TLS_CIPHER_HEXCODE[i]}")" + hexc="${TLS_CIPHER_HEXCODE[i]}" ciph[nr_ciphers]="${TLS_CIPHER_OSSL_NAME[i]}" rfc_ciph[nr_ciphers]="${TLS_CIPHER_RFC_NAME[i]}" kx[nr_ciphers]="${TLS_CIPHER_KX[i]}" @@ -2535,6 +2535,7 @@ run_cipher_per_proto() { normalized_hexcode[nr_ciphers]="x${hexc:2:2}${hexc:7:2}" fi else + hexc="$(tolower "$hexc")" hexcode[nr_ciphers]="${hexc:2:2},${hexc:7:2},${hexc:12:2}" normalized_hexcode[nr_ciphers]="x${hexc:2:2}${hexc:7:2}${hexc:12:2}" fi @@ -2570,9 +2571,9 @@ run_cipher_per_proto() { ciphers_found[nr_ciphers]=false if [[ ${#hexc} -eq 9 ]]; then if [[ "${hexc:2:2}" == "00" ]]; then - normalized_hexcode[nr_ciphers]="$(tolower "x${hexc:7:2}")" + normalized_hexcode[nr_ciphers]="x${hexc:7:2}" else - normalized_hexcode[nr_ciphers]="$(tolower "x${hexc:2:2}${hexc:7:2}")" + normalized_hexcode[nr_ciphers]="x${hexc:2:2}${hexc:7:2}" fi else normalized_hexcode[nr_ciphers]="$(tolower "x${hexc:2:2}${hexc:7:2}${hexc:12:2}")" @@ -2738,6 +2739,7 @@ run_cipher_per_proto() { for (( i=0 ; i