From: Philippe Antoine Date: Fri, 16 Oct 2020 10:51:31 +0000 (+0200) Subject: http2: allow filestore to work with HTTP2 X-Git-Tag: suricata-6.0.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=096dce4bbac343bef7cbfec7d4ce5da548c248c8;p=thirdparty%2Fsuricata.git http2: allow filestore to work with HTTP2 --- 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[] = {