mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Remove deprecated print_hook event
This commit is contained in:
parent
5343924eb9
commit
e9fefa6501
9 changed files with 15 additions and 81 deletions
|
@ -4,7 +4,6 @@
|
|||
# @TEST-EXEC: zeek -b %INPUT
|
||||
# @TEST-EXEC: tr '\000' 'X' <myfile >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
# @TEST-EXEC: cmp myfile hookfile
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
|
@ -14,10 +13,3 @@ event zeek_init()
|
|||
print myfile, "hello\x00world", "hi";
|
||||
close(myfile);
|
||||
}
|
||||
|
||||
event print_hook(f: file, s: string)
|
||||
{
|
||||
local hookfile = open("hookfile");
|
||||
write_file(hookfile, s);
|
||||
close(hookfile);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
# @TEST-EXEC: zeek -b %INPUT
|
||||
# @TEST-EXEC: tr '\000' 'X' <myfile >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
# @TEST-EXEC: cmp myfile hookfile
|
||||
|
||||
# first check local variable of file type w/ &raw_output
|
||||
|
||||
|
@ -16,10 +15,3 @@ event zeek_init()
|
|||
print myfile, "hello\x00world", "hi";
|
||||
close(myfile);
|
||||
}
|
||||
|
||||
event print_hook(f: file, s: string)
|
||||
{
|
||||
local hookfile = open("hookfile");
|
||||
write_file(hookfile, s);
|
||||
close(hookfile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue