Skip to content

Commit d37f6c7

Browse files
authored
Fix alignment in neat_list()
When neat_list() is printing information about a cipher suite that uses (EC)DH key exchange that was obtained using an old version of OpenSSL the rows are not properly aligned, since the key exchange input includes an unexpected trailing space. This commit fixes the problem by removing any trailing spaces from $kx.
1 parent 8eb177a commit d37f6c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testssl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,7 @@ neat_list(){
33313331
local -i i len
33323332

33333333
kx="${3//Kx=/}"
3334+
kx="$(strip_trailing_space "$kx")"
33343335
enc="${4//Enc=/}"
33353336
# In two cases LibreSSL uses very long names for encryption algorithms
33363337
# and doesn't include the number of bits.

0 commit comments

Comments
 (0)