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[] = {