http: include htp-libhtp.h from header

Instead of C files requiring it.
In preparation of libhtp rust, to minimize the final commit.
pull/12462/head
Philippe Antoine 7 months ago committed by Victor Julien
parent d6b56929d3
commit 9a8e377a7a

@ -26,7 +26,6 @@
#include "suricata-common.h" #include "suricata-common.h"
#include "app-layer-htp-file.h" #include "app-layer-htp-file.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer-htp-range.h" #include "app-layer-htp-range.h"
#include "app-layer-events.h" #include "app-layer-events.h"
#include "util-validate.h" #include "util-validate.h"

@ -27,7 +27,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer-htp-xff.h" #include "app-layer-htp-xff.h"
#ifndef HAVE_MEMRCHR #ifndef HAVE_MEMRCHR

@ -37,6 +37,10 @@
#include "app-layer-frames.h" #include "app-layer-frames.h"
#include <htp/htp.h> #include <htp/htp.h>
// Temporary include directly app-layer-htp-libhtp.h
// This helps libhtp.rs transition by making small steps
// app-layer-htp-libhtp.h will be removed with libhtp.rs final merge
#include "app-layer-htp-libhtp.h"
/* default request body limit */ /* default request body limit */
#define HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT 4096U #define HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT 4096U

@ -33,7 +33,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer-http2.h" #include "app-layer-http2.h"
#include "rust.h" #include "rust.h"

@ -40,7 +40,6 @@
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer-smtp.h" #include "app-layer-smtp.h"
#include "flow.h" #include "flow.h"

@ -58,7 +58,6 @@
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-client-body.h" #include "detect-http-client-body.h"
#include "stream-tcp.h" #include "stream-tcp.h"
#include "util-profiling.h" #include "util-profiling.h"

@ -57,7 +57,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-cookie.h" #include "detect-http-cookie.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -60,7 +60,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-header.h" #include "detect-http-header.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -54,7 +54,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-header.h" #include "detect-http-header.h"
#include "detect-http-header-common.h" #include "detect-http-header-common.h"

@ -55,7 +55,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "stream-tcp.h" #include "stream-tcp.h"
#include "detect-http-host.h" #include "detect-http-host.h"

@ -55,7 +55,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-method.h" #include "detect-http-method.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -60,7 +60,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-header.h" #include "detect-http-header.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -51,7 +51,6 @@
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-raw-header.h" #include "detect-http-raw-header.h"
static int DetectHttpRawHeaderSetup(DetectEngineCtx *, Signature *, const char *); static int DetectHttpRawHeaderSetup(DetectEngineCtx *, Signature *, const char *);

@ -57,7 +57,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "stream-tcp.h" #include "stream-tcp.h"
#include "detect-http-request-line.h" #include "detect-http-request-line.h"

@ -57,7 +57,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "stream-tcp.h" #include "stream-tcp.h"
#include "detect-http-response-line.h" #include "detect-http-response-line.h"

@ -59,7 +59,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-header.h" #include "detect-http-header.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -58,7 +58,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-stat-code.h" #include "detect-http-stat-code.h"
#include "stream-tcp-private.h" #include "stream-tcp-private.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -58,7 +58,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-stat-msg.h" #include "detect-http-stat-msg.h"
#include "stream-tcp-private.h" #include "stream-tcp-private.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -56,7 +56,6 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "stream-tcp.h" #include "stream-tcp.h"
#include "detect-http-ua.h" #include "detect-http-ua.h"

@ -53,7 +53,6 @@
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "detect-http-uri.h" #include "detect-http-uri.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -48,7 +48,6 @@
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "stream-tcp.h" #include "stream-tcp.h"

@ -61,7 +61,6 @@
#include "app-layer-protos.h" #include "app-layer-protos.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "util-classification-config.h" #include "util-classification-config.h"
#include "util-unittest.h" #include "util-unittest.h"

@ -41,7 +41,6 @@
#include "output.h" #include "output.h"
#include "log-httplog.h" #include "log-httplog.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "util-privs.h" #include "util-privs.h"

@ -39,7 +39,6 @@
#include "output.h" #include "output.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer-htp-file.h" #include "app-layer-htp-file.h"
#include "app-layer-htp-xff.h" #include "app-layer-htp-xff.h"
#include "app-layer.h" #include "app-layer.h"

@ -38,7 +38,6 @@
#include "output.h" #include "output.h"
#include "app-layer-htp.h" #include "app-layer-htp.h"
#include "app-layer-htp-libhtp.h"
#include "app-layer.h" #include "app-layer.h"
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "util-privs.h" #include "util-privs.h"

Loading…
Cancel
Save