mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
X509 caching: small API changes, tests & test updates
Changed some configuration defaults to potentially more same values. The callback function is now a hook to allow costomization of the events that are raised. Tests now exist. Test baselines are updated.
This commit is contained in:
parent
65e99bafed
commit
4b09947f41
15 changed files with 227 additions and 92 deletions
|
@ -61,10 +61,11 @@ bool file_analysis::X509::EndOfFile()
|
|||
return false;
|
||||
// yup, let's call the callback.
|
||||
|
||||
val_list vl(1);
|
||||
val_list vl(2);
|
||||
vl.push_back(GetFile()->GetVal()->Ref());
|
||||
vl.push_back(new StringVal(cert_sha256));
|
||||
cache_hit_callback->Call(&vl);
|
||||
Val* v = cache_hit_callback->Call(&vl);
|
||||
Unref(v);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue