* \param uri_include_all boolean to indicate if scheme, username/password,
hostname and port should be part of the buffer
*/
-bstr *SCHTPGenerateNormalizedUri(htp_tx_t *tx, htp_uri_t *uri, int uri_include_all)
+bstr *SCHTPGenerateNormalizedUri(htp_tx_t *tx, htp_uri_t *uri, bool uri_include_all)
{
if (uri == NULL)
return NULL;
#include "suricata-common.h"
-bstr *SCHTPGenerateNormalizedUri(htp_tx_t *tx, htp_uri_t *uri, int uri_include_all);
+bstr *SCHTPGenerateNormalizedUri(htp_tx_t *tx, htp_uri_t *uri, bool uri_include_all);
#endif /* __APP_LAYER_HTP_LIBHTP__H__ */
*/
static void HTPConfigSetDefaultsPhase1(HTPCfgRec *cfg_prec)
{
- cfg_prec->uri_include_all = FALSE;
+ cfg_prec->uri_include_all = false;
cfg_prec->request.body_limit = HTP_CONFIG_DEFAULT_REQUEST_BODY_LIMIT;
cfg_prec->response.body_limit = HTP_CONFIG_DEFAULT_RESPONSE_BODY_LIMIT;
cfg_prec->request.inspect_min_size = HTP_CONFIG_DEFAULT_REQUEST_INSPECT_MIN_SIZE;
HTP_DECODER_URL_PATH,
ConfValIsTrue(p->val));
} else if (strcasecmp("uri-include-all", p->name) == 0) {
- cfg_prec->uri_include_all = ConfValIsTrue(p->val);
+ cfg_prec->uri_include_all = (1 == ConfValIsTrue(p->val));
SCLogDebug("uri-include-all %s",
cfg_prec->uri_include_all ? "enabled" : "disabled");
} else if (strcasecmp("query-plusspace-decode", p->name) == 0) {
htp_cfg_t *cfg;
struct HTPCfgRec_ *next;
- int uri_include_all; /**< use all info in uri (bool) */
-
/** max size of the client body we inspect */
int randomize;
int randomize_range;
HTPCfgDir request;
HTPCfgDir response;
+
+ bool uri_include_all; /**< use all info in uri (bool) */
} HTPCfgRec;
/** Struct used to hold chunks of a body on a request */