zeek/testing/btest/scripts/base/protocols/ssl/x509_extensions.test
Bernhard Amann 4b63b30901 Fix x509-extension test sometimes failing.
For some fields, the format apparently is not consistens over
OpenSSL versions. For the test, we simply skip those.
2014-02-05 10:01:51 -08:00

10 lines
361 B
Text

# @TEST-EXEC: bro -r $TRACES/tls1.2.trace %INPUT
# @TEST-EXEC: btest-diff .stdout
event x509_extension(c: connection, is_orig: bool, cert:X509, extension: X509_extension_info)
{
# The formatting of CRL Distribution Points varies between OpenSSL versions. Skip it
# for the test.
if ( extension$short_name != "crlDistributionPoints" )
print extension;
}