mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +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
24 lines
1.2 KiB
Text
24 lines
1.2 KiB
Text
# Skip this test for OpenSSL 3.0 at the moment. We will switch it to only OpenSSL 3.0, once
|
|
# a majority of distributions use is.
|
|
# @TEST-REQUIRES: grep -q "^ZEEK_HAVE_OPENSSL_3_0.*true" $BUILD/CMakeCache.txt && test $? != 0
|
|
|
|
# @TEST-EXEC: zeek -r $TRACES/smtp.trace policy/misc/dump-events %INPUT >all-events.log
|
|
# @TEST-EXEC: zeek -r $TRACES/smtp.trace policy/misc/dump-events %INPUT DumpEvents::include_args=F >all-events-no-args.log
|
|
# @TEST-EXEC: zeek -r $TRACES/smtp.trace policy/misc/dump-events %INPUT DumpEvents::include=/smtp_/ >smtp-events.log
|
|
# @TEST-EXEC: zeek -r $TRACES/smtp.trace policy/misc/dump-events %INPUT DumpEvents::dump_all_events=T | grep -v "CPU: interval\|samples: set\|path: string" > really-all-events.log
|
|
#
|
|
# @TEST-EXEC: btest-diff all-events.log
|
|
# @TEST-EXEC: btest-diff all-events-no-args.log
|
|
# @TEST-EXEC: btest-diff smtp-events.log
|
|
# @TEST-EXEC: btest-diff really-all-events.log
|
|
|
|
# There is some kind of race condition between the MD5 and SHA1 events, which are added
|
|
# by the SSL parser. Just remove MD5, this is not important for this test.
|
|
|
|
event file_over_new_connection(f: fa_file, c: connection, is_orig: bool) &priority=-5
|
|
{
|
|
if ( ! c?$ssl )
|
|
return;
|
|
|
|
Files::remove_analyzer(f, Files::ANALYZER_MD5);
|
|
}
|