mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fixed parsing of TLS server extensions.
This commit is contained in:
parent
8766a2e2fc
commit
88807df269
1 changed files with 4 additions and 0 deletions
|
@ -425,6 +425,10 @@ type ServerHello(rec: SSLRecord) = record {
|
|||
session_id : uint8[session_len];
|
||||
cipher_suite : uint16[1];
|
||||
compression_method : uint8;
|
||||
# This weirdness is to deal with the possible existence or absence
|
||||
# of the following fields.
|
||||
ext_len: uint16[] &until($element == 0 || $element != 0);
|
||||
extensions : SSLExtension(rec)[] &until($input.length() == 0);
|
||||
} &let {
|
||||
state_changed : bool =
|
||||
$context.connection.transition(STATE_CLIENT_HELLO_RCVD,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue