mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Merge pull request #2228 from dcooper16/fix_data_after_finished_30
Fix decrypting TLS 1.3 server response
This commit is contained in:
commit
14ebd0fe5d
@ -11715,6 +11715,8 @@ check_tls_serverhellodone() {
|
||||
decrypted_response+="${tls_content_type}0301$(printf "%04X" $((plaintext_len/2)))${plaintext:0:plaintext_len}"
|
||||
if [[ "$tls_content_type" == 16 ]]; then
|
||||
tls_handshake_ascii+="${plaintext:0:plaintext_len}"
|
||||
# Data after the Finished message is encrypted under a different key.
|
||||
[[ "${plaintext:0:2}" == 14 ]] && break
|
||||
elif [[ "$tls_content_type" == 15 ]]; then
|
||||
tls_alert_ascii+="${plaintext:0:plaintext_len}"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user