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.
This commit is contained in:
David Cooper 2022-09-15 13:59:17 -07:00 committed by GitHub
parent 8eb177aa45
commit d37f6c78ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3331,6 +3331,7 @@ neat_list(){
local -i i len
kx="${3//Kx=/}"
kx="$(strip_trailing_space "$kx")"
enc="${4//Enc=/}"
# In two cases LibreSSL uses very long names for encryption algorithms
# and doesn't include the number of bits.