From 096dce4bbac343bef7cbfec7d4ce5da548c248c8 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 16 Oct 2020 12:51:31 +0200 Subject: [PATCH] http2: allow filestore to work with HTTP2 --- doc/userguide/file-extraction/file-extraction.rst | 1 + src/detect-filename.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/doc/userguide/file-extraction/file-extraction.rst b/doc/userguide/file-extraction/file-extraction.rst index 17195b5d3f..aa71dce9e8 100644 --- a/doc/userguide/file-extraction/file-extraction.rst +++ b/doc/userguide/file-extraction/file-extraction.rst @@ -21,6 +21,7 @@ Supported protocols are: - FTP - NFS - SMB +- HTTP2 Settings ~~~~~~~~ diff --git a/src/detect-filename.c b/src/detect-filename.c index d737e5b727..963794fb0f 100644 --- a/src/detect-filename.c +++ b/src/detect-filename.c @@ -129,6 +129,14 @@ void DetectFilenameRegister(void) ALPROTO_SMB, SIG_FLAG_TOCLIENT, 0, DetectFileInspectGeneric); + //this is used by filestore + DetectAppLayerInspectEngineRegister("files", + ALPROTO_HTTP2, SIG_FLAG_TOSERVER, HTTP2StateDataClient, + DetectFileInspectGeneric); + DetectAppLayerInspectEngineRegister("files", + ALPROTO_HTTP2, SIG_FLAG_TOCLIENT, HTTP2StateDataServer, + DetectFileInspectGeneric); + g_file_match_list_id = DetectBufferTypeGetByName("files"); AppProto protos_ts[] = {