From: Victor Julien Date: Sun, 24 Sep 2023 04:56:57 +0000 (+0200) Subject: detect/content-inspect: reduce scope of internal func X-Git-Tag: suricata-8.0.0-beta1~1954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f78e1b496adb2b00c35e73292c764221f814ee;p=thirdparty%2Fsuricata.git detect/content-inspect: reduce scope of internal func --- diff --git a/src/detect-engine-content-inspection.c b/src/detect-engine-content-inspection.c index 19e7fe1096..3a3b786e46 100644 --- a/src/detect-engine-content-inspection.c +++ b/src/detect-engine-content-inspection.c @@ -95,9 +95,10 @@ * \retval 0 no match * \retval 1 match */ -int DetectEngineContentInspectionInternal(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, - const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const uint8_t *buffer, - const uint32_t buffer_len, const uint32_t stream_start_offset, const uint8_t flags, +static int DetectEngineContentInspectionInternal(DetectEngineCtx *de_ctx, + DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Packet *p, + Flow *f, const uint8_t *buffer, const uint32_t buffer_len, + const uint32_t stream_start_offset, const uint8_t flags, const enum DetectContentInspectionType inspection_mode) { SCEnter(); diff --git a/src/detect-engine-content-inspection.h b/src/detect-engine-content-inspection.h index 4e362dad8d..21ba40c96a 100644 --- a/src/detect-engine-content-inspection.h +++ b/src/detect-engine-content-inspection.h @@ -46,12 +46,6 @@ enum DetectContentInspectionType { * inspection function contains both start and end of the data. */ #define DETECT_CI_FLAGS_SINGLE (DETECT_CI_FLAGS_START|DETECT_CI_FLAGS_END) -/* "internal" returns 1 match, 0 no match, -1 can't match */ -int DetectEngineContentInspectionInternal(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, - const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const uint8_t *buffer, - const uint32_t buffer_len, const uint32_t stream_start_offset, const uint8_t flags, - const enum DetectContentInspectionType inspection_mode); - /* implicit "public" just returns true match, false no match */ bool DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const uint8_t *buffer,