mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/deprecation'
Fixing one missing index adjustment (I believe ...) BIT-757 #merged * origin/topic/jsiwek/deprecation: Fix typo. Update documentation (broken links, outdated tests). Update NEWS for deprecated/changed functions. Deprecate split* family of BIFs. Improve use of &deprecated on functions. Add a new attribute: &deprecated.
This commit is contained in:
commit
f82adb724c
59 changed files with 924 additions and 433 deletions
|
@ -70,23 +70,23 @@ event ssl_established(c: connection) &priority=3
|
|||
clear_waitlist(digest);
|
||||
return;
|
||||
}
|
||||
local fields = split(str, / /);
|
||||
local fields = split_string(str, / /);
|
||||
if ( |fields| != 5 ) # version 1 has 5 fields.
|
||||
{
|
||||
clear_waitlist(digest);
|
||||
return;
|
||||
}
|
||||
local version = split(fields[1], /=/)[2];
|
||||
local version = split_string(fields[0], /=/)[1];
|
||||
if ( version != "1" )
|
||||
{
|
||||
clear_waitlist(digest);
|
||||
return;
|
||||
}
|
||||
local r = notary_cache[digest];
|
||||
r$first_seen = to_count(split(fields[2], /=/)[2]);
|
||||
r$last_seen = to_count(split(fields[3], /=/)[2]);
|
||||
r$times_seen = to_count(split(fields[4], /=/)[2]);
|
||||
r$valid = split(fields[5], /=/)[2] == "1";
|
||||
r$first_seen = to_count(split_string(fields[1], /=/)[1]);
|
||||
r$last_seen = to_count(split_string(fields[2], /=/)[1]);
|
||||
r$times_seen = to_count(split_string(fields[3], /=/)[1]);
|
||||
r$valid = split_string(fields[4], /=/)[1] == "1";
|
||||
|
||||
# Assign notary answer to all records waiting for this digest.
|
||||
if ( digest in waitlist )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue