[Zeek] Adding MySQL TLS Functionality

Jon Siwek jsiwek at corelight.com
Thu Apr 2 12:08:57 PDT 2020


On Thu, Apr 2, 2020 at 11:11 AM Andrew Klaus <andrew at aklaus.ca> wrote:

> /home/zeek/build/src/analyzer/protocol/mysql/mysql_pac.cc: In member function ‘bool binpac::MySQL::MySQL_Flow::proc_mysql_handshake_response_packet(binpac::MySQL::Handshake_Response_Packet*)’:
> /home/zeek/build/src/analyzer/protocol/mysql/mysql_pac.cc:3042:27: error: ‘MySQL’ in namespace ‘analyzer’ does not name a type
>      static_cast<analyzer::MySQL::MySQL_Analyzer>(connection()->bro_analyzer())->TLSHandshake();
>                            ^~~~~

You may need to shuffle some of the header includes around, see if the
attached patch helps.

I also had a typo in the example cast, it should have been casting to
a pointer-type with '*', like:

     static_cast<analyzer::MySQL::MySQL_Analyzer*>(connection()->bro_analyzer());

- Jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql-analyzer.patch
Type: application/octet-stream
Size: 1114 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/zeek/attachments/20200402/01954aa5/attachment.obj 


More information about the Zeek mailing list