mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
a few more small script-level fixes
Sorry, forgot to commit these.
This commit is contained in:
parent
e180403e76
commit
443106dbdb
2 changed files with 6 additions and 2 deletions
|
@ -85,6 +85,10 @@ event bro_init() &priority=5
|
||||||
Files::register_protocol(Analyzer::ANALYZER_SSL,
|
Files::register_protocol(Analyzer::ANALYZER_SSL,
|
||||||
[$get_file_handle = SSL::get_file_handle,
|
[$get_file_handle = SSL::get_file_handle,
|
||||||
$describe = SSL::describe_file]);
|
$describe = SSL::describe_file]);
|
||||||
|
|
||||||
|
Files::register_protocol(Analyzer::ANALYZER_DTLS,
|
||||||
|
[$get_file_handle = SSL::get_file_handle,
|
||||||
|
$describe = SSL::describe_file]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priority=5
|
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priority=5
|
||||||
|
|
|
@ -274,7 +274,7 @@ event connection_state_remove(c: connection) &priority=-5
|
||||||
|
|
||||||
event protocol_confirmation(c: connection, atype: Analyzer::Tag, aid: count) &priority=5
|
event protocol_confirmation(c: connection, atype: Analyzer::Tag, aid: count) &priority=5
|
||||||
{
|
{
|
||||||
if ( atype == Analyzer::ANALYZER_SSL )
|
if ( atype == Analyzer::ANALYZER_SSL || atype == Analyzer::ANALYZER_DTLS )
|
||||||
{
|
{
|
||||||
set_session(c);
|
set_session(c);
|
||||||
c$ssl$analyzer_id = aid;
|
c$ssl$analyzer_id = aid;
|
||||||
|
@ -284,6 +284,6 @@ event protocol_confirmation(c: connection, atype: Analyzer::Tag, aid: count) &pr
|
||||||
event protocol_violation(c: connection, atype: Analyzer::Tag, aid: count,
|
event protocol_violation(c: connection, atype: Analyzer::Tag, aid: count,
|
||||||
reason: string) &priority=5
|
reason: string) &priority=5
|
||||||
{
|
{
|
||||||
if ( c?$ssl && atype == Analyzer::ANALYZER_SSL )
|
if ( c?$ssl && ( atype == Analyzer::ANALYZER_SSL || atype == Analyzer::ANALYZER_DTLS ) )
|
||||||
finish(c, T);
|
finish(c, T);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue