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:
Johanna Amann 2020-03-11 13:27:56 -07:00
parent 65e99bafed
commit 4b09947f41
15 changed files with 227 additions and 92 deletions

View file

@ -512,12 +512,12 @@ type fa_file: record {
bof_buffer: string &optional;
} &redef;
## A function taking a fa_file and a string. Used by x509 analyzer as callback.
## A hook taking a fa_file and a string. Used by the X509 analyzer as callback.
##
## .. todo:: We need this type definition only for declaring builtin functions
## via ``bifcl``. We should extend ``bifcl`` to understand composite types
## directly and then remove this alias.
type string_file_function: function(f: fa_file, str: string);
type string_file_hook: hook(f: fa_file, str: string);
## Metadata that's been inferred about a particular file.
type fa_metadata: record {