int callback(YR_SCAN_CONTEXT* context, int message, void* message_data, void* user_data);
I get a YR_RULE* by casting message_data, and I've looked for a "condition" member in the the underlying YR_RULE struct, but I can't find anything here.
As I am reporting matches, it would be quite valuable context to also report the textual condition.
Say I'm processing matches in this callback:
I get a
YR_RULE*
by castingmessage_data
, and I've looked for a "condition" member in the the underlyingYR_RULE
struct, but I can't find anything here.As I am reporting matches, it would be quite valuable context to also report the textual condition.