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

This should've been added with fa48c885
for completion. Do it now.
The MySQL spec calls it SSLRequest packet, so keep SSL in the name for
consistency.
22 lines
666 B
Text
22 lines
666 B
Text
# This tests how Zeek deals with encrypted connections. Right now, it
|
|
# doesn't log them as it can't parse much of value. We're testing for an
|
|
# empty mysql.log file.
|
|
|
|
# @TEST-EXEC: touch mysql.log
|
|
# @TEST-EXEC: zeek -b -r $TRACES/mysql/encrypted.trace %INPUT >out
|
|
# @TEST-EXEC: btest-diff mysql.log
|
|
# @TEST-EXEC: btest-diff out
|
|
#
|
|
# Ensure the connection was handed off by peaking into some other logs.
|
|
# @TEST-EXEC: btest-diff conn.log
|
|
# @TEST-EXEC: btest-diff ssl.log
|
|
# @TEST-EXEC: btest-diff x509.log
|
|
|
|
@load base/protocols/conn
|
|
@load base/protocols/mysql
|
|
@load base/protocols/ssl
|
|
|
|
event mysql_ssl_request(c: connection)
|
|
{
|
|
print "mysql ssl request", c$uid;
|
|
}
|