From: Philippe Antoine Date: Thu, 16 Jan 2025 09:43:12 +0000 (+0100) Subject: http: aliases for htp auths X-Git-Tag: suricata-8.0.0-beta1~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=604b6256166d0e9d341cd839678d1148230e56c9;p=thirdparty%2Fsuricata.git http: aliases for htp auths In preparation of libhtp rust --- diff --git a/src/app-layer-htp-libhtp.h b/src/app-layer-htp-libhtp.h index 8720165a79..b041c6707f 100644 --- a/src/app-layer-htp-libhtp.h +++ b/src/app-layer-htp-libhtp.h @@ -70,6 +70,8 @@ #define HTP_FLAGS_HOSTU_INVALID HTP_HOSTU_INVALID #define HTP_FLAGS_HOSTH_INVALID HTP_HOSTH_INVALID +#define HTP_AUTH_TYPE_UNRECOGNIZED HTP_AUTH_UNRECOGNIZED + bstr *SCHTPGenerateNormalizedUri(htp_tx_t *tx, htp_uri_t *uri, bool uri_include_all); #endif /* SURICATA_APP_LAYER_HTP_LIBHTP__H */ diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 4ea3d51b4b..60c3b2289d 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -784,7 +784,7 @@ static inline void HTPErrorCheckTxRequestFlags(HtpState *s, htp_tx_t *tx) HTPSetEvent(s, htud, STREAM_TOSERVER, HTTP_DECODER_EVENT_HEADER_HOST_INVALID); } - if (tx->request_auth_type == HTP_AUTH_UNRECOGNIZED) { + if (tx->request_auth_type == HTP_AUTH_TYPE_UNRECOGNIZED) { HtpTxUserData *htud = (HtpTxUserData *) htp_tx_get_user_data(tx); if (htud == NULL) return;