From 0a1c3267e6b3279eba9e642acf0c737afa81381d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 10 Dec 2021 14:05:35 +0100 Subject: [PATCH] htp: rename callbacks to make purpose clearer --- src/app-layer-htp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 46815b5f80..7dae3d1a3f 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -2083,7 +2083,7 @@ static int HTPCallbackResponseStart(htp_tx_t *tx) * \param connp pointer to the current connection parser which has the htp * state in it as user data */ -static int HTPCallbackRequest(htp_tx_t *tx) +static int HTPCallbackRequestComplete(htp_tx_t *tx) { SCEnter(); @@ -2127,7 +2127,7 @@ static int HTPCallbackRequest(htp_tx_t *tx) * \param connp pointer to the current connection parser which has the htp * state in it as user data */ -static int HTPCallbackResponse(htp_tx_t *tx) +static int HTPCallbackResponseComplete(htp_tx_t *tx) { SCEnter(); @@ -2330,10 +2330,10 @@ static void HTPConfigSetDefaultsPhase1(HTPCfgRec *cfg_prec) htp_config_register_response_body_data(cfg_prec->cfg, HTPCallbackResponseBodyData); htp_config_register_request_start(cfg_prec->cfg, HTPCallbackRequestStart); - htp_config_register_request_complete(cfg_prec->cfg, HTPCallbackRequest); + htp_config_register_request_complete(cfg_prec->cfg, HTPCallbackRequestComplete); htp_config_register_response_start(cfg_prec->cfg, HTPCallbackResponseStart); - htp_config_register_response_complete(cfg_prec->cfg, HTPCallbackResponse); + htp_config_register_response_complete(cfg_prec->cfg, HTPCallbackResponseComplete); htp_config_set_parse_request_cookies(cfg_prec->cfg, 0);