mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

We previously used the Spicy plugin's `Spicy::available` to test for Spicy support. However, having Spicy support does not necessarily mean that we have built Zeek with its in-tree Spicy analyzers: the Spicy plugin could have been pulled in from external. The new BIF now reliably tells us whether the Spicy analyzers are available; its result corresponds to what `zeek-config --have-spicy-analyzers` returns as well. We also move the two current checks over to use this BIF. (Note: I refrained from renaming the CMake-side `USE_SPICY_ANALYERS` to `HAVE_SPICY_ANALYZERS`. We should do this eventually for consistency, but I didn't want to make more changes than necessary right now.)
33 lines
935 B
Text
33 lines
935 B
Text
##! Events generated by the Finger analyzer.
|
|
|
|
@if ( have_spicy_analyzers() ) # prototypes below must not be used with legacy analyzer
|
|
|
|
## Generated for Finger requests.
|
|
##
|
|
## See `Wikipedia <http://en.wikipedia.org/wiki/Finger_protocol>`__ for more
|
|
## information about the Finger protocol.
|
|
##
|
|
## c: The connection.
|
|
##
|
|
## full: True if verbose information is requested (``/W`` switch).
|
|
##
|
|
## username: The request's user name.
|
|
##
|
|
## hostname: The request's host name.
|
|
##
|
|
## .. zeek:see:: finger_reply
|
|
global finger_request: event(c: connection, full: bool, username: string, hostname: string);
|
|
|
|
## Generated for Finger replies.
|
|
##
|
|
## See `Wikipedia <http://en.wikipedia.org/wiki/Finger_protocol>`__ for more
|
|
## information about the Finger protocol.
|
|
##
|
|
## c: The connection.
|
|
##
|
|
## reply_line: The reply as returned by the server
|
|
##
|
|
## .. zeek:see:: finger_request
|
|
global finger_reply: event(c: connection, reply_line: string);
|
|
|
|
@endif
|