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

Now the x509 opaque is wrapped in the certificate structure. After pondering on it for a bit, this might not be the brightest idea.
29 lines
501 B
Text
29 lines
501 B
Text
|
|
@load base/frameworks/files
|
|
|
|
module X509;
|
|
|
|
export {
|
|
redef enum Log::ID += { LOG };
|
|
}
|
|
|
|
event x509_cert(f: fa_file, cert: X509::Certificate)
|
|
{
|
|
print cert;
|
|
}
|
|
|
|
event x509_extension(f: fa_file, cert: X509::Certificate, ext: X509::Extension)
|
|
{
|
|
print ext;
|
|
}
|
|
|
|
event x509_ext_basic_constraints(f: fa_file, cert: X509::Certificate, ext: X509::BasicConstraints)
|
|
{
|
|
print ext;
|
|
}
|
|
|
|
event x509_ext_subject_alternative_name(f: fa_file, cert: X509::Certificate, ext: X509::SubjectAlternativeName)
|
|
{
|
|
print ext;
|
|
}
|
|
|