]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: aliases for htp auths
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 16 Jan 2025 09:43:12 +0000 (10:43 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 16 Jan 2025 22:09:08 +0000 (23:09 +0100)
In preparation of libhtp rust

src/app-layer-htp-libhtp.h
src/app-layer-htp.c

index 8720165a79d79d5c0d506c93239166ce0a3a5cd1..b041c6707f551976fd14af1e491359b445ad1e60 100644 (file)
@@ -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 */
index 4ea3d51b4b803535bee221dd7ae257c951ada04e..60c3b2289d5003700a38707f9b3d5ef79374003c 100644 (file)
@@ -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;