Go to the source code of this file.
|
void | htp_uri_free (htp_uri_t *uri) |
|
htp_uri_t * | htp_uri_alloc (void) |
|
void | htp_log (htp_connp_t *connp, const char *file, int line, enum htp_log_level_t level, int code, const char *fmt,...) |
|
htp_status_t | htp_urldecode_inplace (htp_cfg_t *cfg, enum htp_decoder_ctx_t ctx, bstr *input, uint64_t *flags) |
|
htp_status_t | htp_urldecode_inplace_ex (htp_cfg_t *cfg, enum htp_decoder_ctx_t ctx, bstr *input, uint64_t *flags, int *expected_status_code) |
|
char * | htp_get_version (void) |
|
char* htp_get_version |
( |
void |
| ) |
|
Returns the LibHTP version string.
- Returns
- LibHTP version, for example "LibHTP v0.5.x".
Creates a new log entry and stores it with the connection. The file and line parameters are typically auto-generated using the HTP_LOG_MARK macro.
- Parameters
-
[in] | connp | |
[in] | file | |
[in] | line | |
[in] | level | |
[in] | code | |
[in] | fmt | |
[in] | ... | Records one log message. |
[in] | connp | |
[in] | file | |
[in] | line | |
[in] | level | |
[in] | code | |
[in] | fmt | |
Allocates and initializes a new htp_uri_t structure.
- Returns
- New structure, or NULL on memory allocation failure.
Frees all data contained in the uri, and then the uri itself.
- Parameters
-
Performs in-place decoding of the input string, according to the configuration specified by cfg and ctx. On output, various flags (HTP_URLEN_*) might be set.
- Parameters
-
[in] | cfg | |
[in] | ctx | |
[in] | input | |
[out] | flags | |
- Returns
- HTP_OK on success, HTP_ERROR on failure.
Performs in-place decoding of the input string, according to the configuration specified by cfg and ctx. On output, various flags (HTP_URLEN_*) might be set. If something in the input would cause a particular server to respond with an error, the appropriate status code will be set.
- Parameters
-
[in] | cfg | |
[in] | ctx | |
[in] | input | |
[out] | flags | |
[out] | expected_status_code | 0 by default, or status code as necessary |
- Returns
- HTP_OK on success, HTP_ERROR on failure.