mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
mysql: Introduce mysql_ssl_request event
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.
This commit is contained in:
parent
6ea1045245
commit
0a1568f1a1
7 changed files with 40 additions and 6 deletions
|
@ -1,15 +1,17 @@
|
|||
# Just two traces with MySQL running in Amazon RDS tls1.3 and tls1.2
|
||||
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/mysql/tls-12-amazon-rds.trace %INPUT
|
||||
# @TEST-EXEC: mkdir tls-12 && mv *log tls-12
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/mysql/tls-12-amazon-rds.trace %INPUT >out
|
||||
# @TEST-EXEC: mkdir tls-12 && mv *log out tls-12
|
||||
#
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/mysql/tls-13-amazon-rds.trace %INPUT
|
||||
# @TEST-EXEC: mkdir tls-13 && mv *log tls-13
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/mysql/tls-13-amazon-rds.trace %INPUT >out
|
||||
# @TEST-EXEC: mkdir tls-13 && mv *log out tls-13
|
||||
#
|
||||
# @TEST-EXEC: btest-diff tls-12/out
|
||||
# @TEST-EXEC: btest-diff tls-12/conn.log
|
||||
# @TEST-EXEC: btest-diff tls-12/ssl.log
|
||||
# @TEST-EXEC: btest-diff tls-12/x509.log
|
||||
#
|
||||
# @TEST-EXEC: btest-diff tls-13/out
|
||||
# @TEST-EXEC: btest-diff tls-13/conn.log
|
||||
# @TEST-EXEC: btest-diff tls-13/ssl.log
|
||||
# @TEST-EXEC: ! test -f tls-13/x509.log
|
||||
|
@ -17,3 +19,8 @@
|
|||
@load base/protocols/conn
|
||||
@load base/protocols/mysql
|
||||
@load base/protocols/ssl
|
||||
|
||||
event mysql_ssl_request(c: connection)
|
||||
{
|
||||
print "mysql ssl request", c$uid;
|
||||
}
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
# empty mysql.log file.
|
||||
|
||||
# @TEST-EXEC: touch mysql.log
|
||||
# @TEST-EXEC: zeek -b -r $TRACES/mysql/encrypted.trace %INPUT
|
||||
# @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
|
||||
|
@ -14,3 +15,8 @@
|
|||
@load base/protocols/conn
|
||||
@load base/protocols/mysql
|
||||
@load base/protocols/ssl
|
||||
|
||||
event mysql_ssl_request(c: connection)
|
||||
{
|
||||
print "mysql ssl request", c$uid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue