mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

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.
12 lines
394 B
Text
12 lines
394 B
Text
# Test that certificate caching works as expected.
|
|
|
|
# @TEST-EXEC: zeek -r $TRACES/tls/google-duplicate.trace %INPUT
|
|
# @TEST-EXEC: btest-diff x509.log
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
redef X509::caching_required_encounters = 1;
|
|
|
|
hook X509::x509_certificate_cache_replay(f: fa_file, sha256: string) &priority=1
|
|
{
|
|
print "Encountered cached certificate not further handled by core", sha256;
|
|
}
|