mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
TLS 1.3 changes: Address review feedback
Only minor changes, new consts, and documentation updates. Part of GH-1335. Addresses GH-1323.
This commit is contained in:
parent
22ed75c3ce
commit
886d7178ef
4 changed files with 56 additions and 5 deletions
|
@ -303,14 +303,14 @@ event ssl_extension(c: connection, is_orig: bool, code: count, val: string) &pri
|
|||
{
|
||||
set_session(c);
|
||||
|
||||
if ( is_orig && code == 35 && |val| > 0 ) # 35 == SessionTicket TLS
|
||||
if ( is_orig && code == SSL_EXTENSION_SESSIONTICKET_TLS && |val| > 0 )
|
||||
# In this case, we might have an empty ID. Set back to F in client_hello event
|
||||
# if it is not empty after all.
|
||||
c$ssl$client_ticket_empty_session_seen = T;
|
||||
else if ( is_orig && code == 41 ) # 41 == pre_shared_key
|
||||
else if ( is_orig && code == SSL_EXTENSION_PRE_SHARED_KEY )
|
||||
# In this case, the client sent a PSK extension which can be used for resumption
|
||||
c$ssl$client_psk_seen = T;
|
||||
else if ( ! is_orig && code == 41 && c$ssl$client_psk_seen )
|
||||
else if ( ! is_orig && code == SSL_EXTENSION_PRE_SHARED_KEY && c$ssl$client_psk_seen )
|
||||
# In this case, the server accepted the PSK offered by the client.
|
||||
c$ssl$resumed = T;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue