37 |
37 |
38 local function cb(conn) |
38 local function cb(conn) |
39 if conn:ssl() then |
39 if conn:ssl() then |
40 local sock = conn:socket(); |
40 local sock = conn:socket(); |
41 if sock.info and sock:info().protocol == "TLSv1.3" then |
41 if sock.info and sock:info().protocol == "TLSv1.3" then |
42 return false |
42 if sock.exportkeyingmaterial then |
|
43 return "p=tls-exporter", sock:exportkeyingmaterial("EXPORTER-Channel-Binding", 32, ""); |
|
44 end |
43 elseif sock.getfinished then |
45 elseif sock.getfinished then |
44 return "p=tls-unique", sock:getfinished(); |
46 return "p=tls-unique", sock:getfinished(); |
45 end |
47 end |
46 end |
48 end |
47 end |
49 end |