1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

TLS 1.3 support for NSE. Fixes #1691

This commit is contained in:
dmiller
2021-07-02 20:01:30 +00:00
parent 61f17067a3
commit 7c61f7c9c3
10 changed files with 545 additions and 201 deletions

View File

@@ -942,7 +942,9 @@ end
local function handshake_cert (socket)
-- logic mostly lifted from ssl-enum-ciphers
local hello = tls.client_hello()
-- TODO: implement TLSv1.3 handshake encryption so we can decrypt the
-- Certificate message. Until then, we don't attempt TLSv1.3
local hello = tls.client_hello({protocol="TLSv1.2"})
local status, err = socket:send(hello)
if not status then
return false, "Failed to send to server"