]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/file_data: Consolidate file handling
authorJeff Lucovsky <jlucovsky@oisf.net>
Mon, 10 Jul 2023 14:40:24 +0000 (10:40 -0400)
committerVictor Julien <vjulien@oisf.net>
Fri, 14 Jul 2023 15:57:38 +0000 (17:57 +0200)
commitf735e309e20f796c2ba4ab0e5be89614a88fb2df
treea04fb5c833727fcf4dea72b212f4f5417b62b373
parent2fd0025edeb6be5747d2439571b4a68c34dfbbf9
detect/file_data: Consolidate file handling

Issue: 4145

Consolidate file handling for all protocols that use file objects for
file_data.

Make sure http_server_body / http.response_body for HTTP1 continue
to inspect the actual body. For HTTP2, http.response_body acts as
an internal alias for `file_data`.
src/detect-file-data.c
src/detect-filemagic.c
src/detect-filename.c
src/detect-http-server-body.c