1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-05-21 15:46:03 +02:00

Support version negotiation test

The new test in PR  sends a TLSv1.4 ClientHello, so socksend_tls_clienthello() needs to include the signature algorithms extension if $tls_low_byte >= 3 rather than only if it is equal to 3.
This commit is contained in:
David Cooper 2016-05-11 09:24:07 -04:00
parent 92c2b60d9b
commit 07a8bd3143

@ -4278,7 +4278,7 @@ socksend_tls_clienthello() {
# RFC 5246 says that clients MUST NOT offer the signature algorithms
# extension if they are offering TLS versions prior to 1.2.
if [[ "$tls_low_byte" == "03" ]]; then
if [[ "0x$tls_low_byte" -ge "0x03" ]]; then
all_extensions="$all_extensions
,$extension_signature_algorithms"
fi