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

This commit fixes the compile-time warnings that OpenSSL 3.0 raises for our source-code. For the cases where this was necessary we now have two implementations - one for OpenSSL 1.1 and earlier, and one for OpenSSL 3.0. This also makes our testsuite pass with OpenSSL 3.0 Relates to GH-1379
16 lines
634 B
Text
16 lines
634 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/tls/tls1.2.trace %INPUT
|
|
# This is a hack to get around the fact that the output format changed between OpenSSL 1.1 and OpenSS:
|
|
# 3.0.
|
|
# @TEST-EXEC: cp .stdout stdout-openssl-3.0
|
|
# @TEST-EXEC: grep -q "^ZEEK_HAVE_OPENSSL_3_0.*true" $BUILD/CMakeCache.txt && btest-diff stdout-openssl-3.0 || btest-diff .stdout
|
|
|
|
@load base/protocols/ssl
|
|
@load base/files/x509
|
|
|
|
event x509_extension(f: fa_file, extension: X509::Extension)
|
|
{
|
|
# The formatting of CRL Distribution Points varies between OpenSSL versions. Skip it
|
|
# for the test.
|
|
if ( extension$short_name != "crlDistributionPoints" )
|
|
print extension;
|
|
}
|