mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Merge remote-tracking branch 'origin/master' into topic/johanna/spicy-tls
* origin/master: (386 commits) Normalize version strings in test Update doc submodule [nomail] [skip ci] Update external testing baseline hashes fuzzers: Add DTLS fuzzer generic-analyzer-fuzzer: Support NextPacket() fuzzing Require `truncate` for a test using it Bump outdated baseline Fix tests so they work both with GNU and BSD tools Install libmaxminddb in macOS CI Bump auxil/spicy to latest release Supervisor: Handle EAGAIN error on stem pipe fuzzer-setup: Allow customization without recompiling ssl: Prevent unbounded ssl_history growth ssl: Cap number of alerts parsed from SSL record subdir-btest: Allow setting build_dir Update doc submodule [nomail] [skip ci] CI: Pass -A flag to btest for cluster-testing builds Update doc submodule [nomail] [skip ci] Update baselines ftp: Do not base seq on number of pending commands ...
This commit is contained in:
commit
0afe94154d
800 changed files with 109788 additions and 98811 deletions
|
@ -143,6 +143,10 @@ export {
|
|||
## (especially with large file transfers).
|
||||
option disable_analyzer_after_detection = T;
|
||||
|
||||
## Maximum length of the ssl_history field to prevent unbounded
|
||||
## growth when the parser is running into unexpected situations.
|
||||
option max_ssl_history_length = 100;
|
||||
|
||||
## Delays an SSL record for a specific token: the record will not be
|
||||
## logged as long as the token exists or until 15 seconds elapses.
|
||||
global delay_log: function(info: Info, token: string);
|
||||
|
@ -208,10 +212,16 @@ function set_session(c: connection)
|
|||
|
||||
function add_to_history(c: connection, is_client: bool, char: string)
|
||||
{
|
||||
if ( |c$ssl$ssl_history| == max_ssl_history_length )
|
||||
return;
|
||||
|
||||
if ( is_client )
|
||||
c$ssl$ssl_history = c$ssl$ssl_history+to_upper(char);
|
||||
else
|
||||
c$ssl$ssl_history = c$ssl$ssl_history+to_lower(char);
|
||||
|
||||
if ( |c$ssl$ssl_history| == max_ssl_history_length )
|
||||
Reporter::conn_weird("SSL_max_ssl_history_length_reached", c);
|
||||
}
|
||||
|
||||
function delay_log(info: Info, token: string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue