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

This now picks up additional typical misspellings, but also triggers on more identifiers we use. I opted for fixing the obvious misspellings and updated the allowlist for anything else.
23 lines
789 B
Text
23 lines
789 B
Text
##! When the server requests a client certificate, it optionally may specify a list of CAs that
|
|
##! it accepts. If the server does this, this script adds this list to ssl.log.
|
|
|
|
@load base/protocols/ssl
|
|
|
|
module SSL;
|
|
|
|
redef record SSL::Info += {
|
|
## List of client certificate CAs accepted by the server
|
|
requested_client_certificate_authorities: vector of string &optional &log;
|
|
};
|
|
|
|
event ssl_certificate_request(c: connection, is_client: bool, certificate_types: index_vec, supported_signature_algorithms: signature_and_hashalgorithm_vec, certificate_authorities: string_vec)
|
|
{
|
|
if ( is_client )
|
|
return;
|
|
|
|
local out: vector of string = vector();
|
|
for ( _, ca in certificate_authorities )
|
|
out += parse_distinguished_name(ca);
|
|
|
|
c$ssl$requested_client_certificate_authorities = out;
|
|
}
|