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

When encountering an extension unknown to OpenSSL, we would read from the wrong memory location. Also added a testcase to prevent this specific case from happening again.
11 lines
250 B
Text
11 lines
250 B
Text
# @TEST-EXEC: bro -C -r $TRACES/tls/ocsp-stapling.trace %INPUT
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
event x509_extension(f: fa_file, ext: X509::Extension)
|
|
{
|
|
if ( ext$oid != "1.3.6.1.5.5.7.1.12" )
|
|
return;
|
|
|
|
print ext$short_name;
|
|
print ext$value;
|
|
}
|