mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Merge remote-tracking branch 'origin/topic/johanna/imap-starttls'
BIT-1574 #merged * origin/topic/johanna/imap-starttls: IMAP: add c++11 header file that gcc complains about. IMAP: documentation and test updates also generate an event when starttls is encounterd for imap. Add support of getting server capabilities to IMAP parser. Basic IMAP StartTLS analyzer.
This commit is contained in:
commit
2eeddac401
25 changed files with 468 additions and 14 deletions
12
testing/btest/scripts/base/protocols/imap/capabilities.test
Normal file
12
testing/btest/scripts/base/protocols/imap/capabilities.test
Normal file
|
@ -0,0 +1,12 @@
|
|||
# @TEST-EXEC: bro -b -C -r $TRACES/tls/imap-starttls.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
@load base/protocols/ssl
|
||||
@load base/protocols/conn
|
||||
@load base/frameworks/dpd
|
||||
@load base/protocols/imap
|
||||
|
||||
event imap_capabilities(c: connection, capabilities: string_vec)
|
||||
{
|
||||
print capabilities;
|
||||
}
|
15
testing/btest/scripts/base/protocols/imap/starttls.test
Normal file
15
testing/btest/scripts/base/protocols/imap/starttls.test
Normal file
|
@ -0,0 +1,15 @@
|
|||
# @TEST-EXEC: bro -b -C -r $TRACES/tls/imap-starttls.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff conn.log
|
||||
# @TEST-EXEC: btest-diff ssl.log
|
||||
# @TEST-EXEC: btest-diff x509.log
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
@load base/protocols/ssl
|
||||
@load base/protocols/conn
|
||||
@load base/frameworks/dpd
|
||||
@load base/protocols/imap
|
||||
|
||||
event imap_starttls(c: connection)
|
||||
{
|
||||
print "Tls started for connection";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue