mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Suggestion from Jon: now the callback is passed the table-entry directly. This allows us to skip one lookup.
14 lines
500 B
Text
14 lines
500 B
Text
# Test that certificate caching works as expected.
|
|
# Prevent certificate events to be raised/caching from occurring for cached certificates.
|
|
|
|
# @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, e: any, sha256: string) &priority=1
|
|
{
|
|
print "Encountered cached certificate not further handled by core", sha256;
|
|
break;
|
|
}
|