60 static void DetectHttpUriRegisterTests(
void);
64 static bool DetectHttpUriValidateCallback(
const Signature *s,
const char **sigerror);
67 Flow *_f,
const uint8_t _flow_flags,
68 void *txv,
const int list_id);
76 static bool DetectHttpRawUriValidateCallback(
const Signature *s,
const char **);
79 Flow *_f,
const uint8_t _flow_flags,
80 void *txv,
const int list_id);
83 static int g_http_raw_uri_buffer_id = 0;
84 static int g_http_uri_buffer_id = 0;
126 DetectHttpUriSetupCallback);
129 DetectHttpUriValidateCallback);
165 DetectHttpRawUriSetupCallback);
168 DetectHttpRawUriValidateCallback);
190 static bool DetectHttpUriValidateCallback(
const Signature *s,
const char **sigerror)
222 const uint8_t _flow_flags,
void *txv,
const int list_id)
228 htp_tx_t *tx = (htp_tx_t *)txv;
255 const uint8_t *b = NULL;
257 if (rs_http2_tx_get_uri(txv, &b, &b_len) != 1)
259 if (b == NULL || b_len == 0)
285 static bool DetectHttpRawUriValidateCallback(
const Signature *s,
const char **sigerror)
317 const uint8_t _flow_flags,
void *txv,
const int list_id)
323 htp_tx_t *tx = (htp_tx_t *)txv;
324 if (
unlikely(tx->request_uri == NULL)) {
327 const uint32_t data_len = bstr_len(tx->request_uri);
328 const uint8_t *data = bstr_ptr(tx->request_uri);