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

OpenSSL 3.1 switched from outputting UNDEF to not giving a short name in this case. Luckily this only requires a tiny test change. We might consider pulling this into older versions, for ease of CI testing. Fixes GH-2869
16 lines
328 B
Text
16 lines
328 B
Text
# @TEST-EXEC: zeek -b -C -r $TRACES/tls/ocsp-stapling.trace %INPUT
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
@load base/protocols/ssl
|
|
|
|
event x509_extension(f: fa_file, ext: X509::Extension)
|
|
{
|
|
if ( ext$oid != "1.3.6.1.5.5.7.1.12" )
|
|
return;
|
|
|
|
if ( ext?$short_name )
|
|
print ext$short_name;
|
|
else
|
|
print "UNDEF";
|
|
print ext$value;
|
|
}
|