mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Certificate caching - now working in principle.
I moved the replay function to a callback - which now means that the replayed functions are called before file_state remove. Which makes this virtually identical with the events raised by the core. Currently this is mostly missing tests, leak-testing and performance-tests.
This commit is contained in:
parent
0829164a3e
commit
65e99bafed
5 changed files with 93 additions and 45 deletions
|
@ -888,3 +888,10 @@ function x509_set_certificate_cache%(tbl: string_any_table%) : bool
|
|||
|
||||
return val_mgr->GetBool(1);
|
||||
%}
|
||||
|
||||
function x509_set_certificate_cache_hit_callback%(f: string_file_function%) : bool
|
||||
%{
|
||||
file_analysis::X509::SetCertificateCacheHitCallback({NewRef{}, f->AsFunc()});
|
||||
|
||||
return val_mgr->GetBool(1);
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue