Merge pull request #675 from dcooper16/fix_client_simulation_2.8

Fix client simulation in 2.8
This commit is contained in:
Dirk Wetter 2017-03-24 18:45:54 +01:00 committed by GitHub
commit 7069fb4c67

View File

@ -2129,7 +2129,9 @@ create_client_simulation_tls_clienthello() {
len=$len_extension+8
tls_extensions+="${tls_handshake_ascii:$offset:$len}"
offset=$offset+$len
elif [[ -n "$SNI" ]]; then
else
sni_extension_found=true
if [[ -n "$SNI" ]]; then
# Create a server name extension that corresponds to $SNI
len_servername=${#NODE}
hexdump_format_str="$len_servername/1 \"%02x\""
@ -2141,6 +2143,7 @@ create_client_simulation_tls_clienthello() {
tls_extensions+="000000${len_sni_ext}00${len_sni_listlen}0000${len_servername_hex}${servername_hexstr}"
offset=$offset+$len_extension+4
fi
fi
done
if ! $sni_extension_found; then