mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix the caching of recently validated certs
The recently_validated_certs table was being checked for entries, but missing hashes were not being added to it after validation.
This commit is contained in:
parent
e8739f785b
commit
cbe48258f6
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ event ssl_established(c: connection) &priority=3
|
||||||
{
|
{
|
||||||
local result = x509_verify(c$ssl$cert, c$ssl$cert_chain, root_certs);
|
local result = x509_verify(c$ssl$cert, c$ssl$cert_chain, root_certs);
|
||||||
c$ssl$validation_status = x509_err2str(result);
|
c$ssl$validation_status = x509_err2str(result);
|
||||||
|
recently_validated_certs[c$ssl$cert_hash] = c$ssl$validation_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( c$ssl$validation_status != "ok" )
|
if ( c$ssl$validation_status != "ok" )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue