mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Merge branch 'topic/xb-anssi/http_signature_body_end_match' of https://github.com/xb-anssi/zeek
* 'topic/xb-anssi/http_signature_body_end_match' of https://github.com/xb-anssi/zeek: Let signature framework match HTTP body end Test how the signature framework matches HTTP body
This commit is contained in:
commit
8a13155a41
6 changed files with 183 additions and 1 deletions
|
@ -69,6 +69,12 @@ void HTTP_Entity::EndOfData() {
|
|||
encoding = IDENTITY;
|
||||
}
|
||||
|
||||
zeek::detail::Rule::PatternType rule =
|
||||
http_message->IsOrig() ? zeek::detail::Rule::HTTP_REQUEST_BODY : zeek::detail::Rule::HTTP_REPLY_BODY;
|
||||
|
||||
http_message->MyHTTP_Analyzer()->Conn()->Match(rule, reinterpret_cast<const u_char*>(""), 0, http_message->IsOrig(),
|
||||
false, true, false);
|
||||
|
||||
if ( body_length )
|
||||
http_message->MyHTTP_Analyzer()->ForwardEndOfData(http_message->IsOrig());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue