suricata
app-layer-htp-libhtp.h File Reference
#include "suricata-common.h"
Include dependency graph for app-layer-htp-libhtp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bstr * SCHTPGenerateNormalizedUri (htp_tx_t *tx, htp_uri_t *uri, bool uri_include_all)
 Generates the normalized uri. More...
 

Detailed Description

Author
Anoop Saldanha anoop.nosp@m.sald.nosp@m.anha@.nosp@m.gmai.nosp@m.l.com

APIs from libhtp 0.5.x.

Definition in file app-layer-htp-libhtp.h.

Function Documentation

◆ SCHTPGenerateNormalizedUri()

bstr* SCHTPGenerateNormalizedUri ( htp_tx_t *  tx,
htp_uri_t *  uri,
bool  uri_include_all 
)

Generates the normalized uri.

   Libhtp doesn't recreate the whole normalized uri and save it.
   That duty has now been passed to us.  A lot of this code has been
   copied from libhtp.

   Keep an eye out on the tx->parsed_uri struct and how the parameters
   in it are generated, just in case some modifications are made to
   them in the future.
Parameters
uri_include_allboolean to indicate if scheme, username/password, hostname and port should be part of the buffer

Definition at line 64 of file app-layer-htp-libhtp.c.

References flags, and len.