~ubuntu-branches/ubuntu/trusty/libhtp/trusty-proposed

« back to all changes in this revision

Viewing changes to htp/htp.h

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-11-03 09:23:06 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20121103092306-1mlez1c0xf0ic8t8
Tags: 0.2.10-1
* Imported Upstream version 0.2.10
* Update watch file
* Update symbols file
* Bump Standards Version
* Convert to DH 9
  - add multiarch support
  - fully enable hardening flags
* Debian release 0.2.10-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
// -- Defines -------------------------------------------------------------------------------------
43
43
 
44
 
#define HTP_BASE_VERSION_TEXT   "0.2.6"
 
44
#define HTP_BASE_VERSION_TEXT   "0.2.10"
45
45
 
46
46
#define HTP_ERROR              -1
47
47
#define HTP_OK                  0
704
704
 
705
705
    /** Parsing flags: HTP_FIELD_INVALID_NOT_FATAL, HTP_FIELD_INVALID_FATAL, HTP_FIELD_LONG */
706
706
    unsigned int flags;
707
 
    
 
707
 
 
708
    /** terminator characters, if NULL assume RFC compliant 0d 0a */
 
709
    bstr *terminators;
 
710
 
708
711
    /** Header that uses this line. */
709
712
    htp_header_t *header;
710
713
};
884
887
    /** Parsed response headers. */
885
888
    table_t *response_headers;
886
889
 
 
890
    /** Contains raw response headers. This field is generated on demand, use
 
891
     *  htp_tx_get_response_headers_raw() to get it.
 
892
     */
 
893
    bstr *response_headers_raw;
 
894
 
 
895
    /** How many response header lines have been included in the raw
 
896
     *  buffer (above).
 
897
     */
 
898
    size_t response_headers_raw_lines;
 
899
 
887
900
    /** The actual message length (the length _after_ transformations
888
901
     *  have been applied). This field will change as a request body is being
889
902
     *  received, with the final value available once the entire body has
993
1006
void htp_config_set_path_control_char_handling(htp_cfg_t *cfg, int control_char_handling);
994
1007
void htp_config_set_path_convert_utf8(htp_cfg_t *cfg, int convert_utf8);
995
1008
void htp_config_set_path_decode_separators(htp_cfg_t *cfg, int backslash_separators);
996
 
void htp_config_set_path_decode_separators(htp_cfg_t *cfg, int decode_u_encoding);
 
1009
void htp_config_set_path_decode_u_encoding(htp_cfg_t *cfg, int decode_u_encoding);
997
1010
void htp_config_set_path_invalid_encoding_handling(htp_cfg_t *cfg, int invalid_encoding_handling);
998
1011
void htp_config_set_path_invalid_utf8_handling(htp_cfg_t *cfg, int invalid_utf8_handling);
999
1012
void htp_config_set_path_nul_encoded_handling(htp_cfg_t *cfg, int nul_encoded_handling);
1014
1027
 void htp_connp_set_user_data(htp_connp_t *connp, void *user_data);
1015
1028
void *htp_connp_get_user_data(htp_connp_t *connp);
1016
1029
 
1017
 
htp_conn_t *htp_conn_create();
 
1030
htp_conn_t *htp_conn_create(htp_connp_t *connp);
1018
1031
       void htp_conn_destroy(htp_conn_t *conn);
1019
1032
        int htp_conn_remove_tx(htp_conn_t *conn, htp_tx_t *tx);
1020
1033
 
1129
1142
bstr *htp_unparse_uri_noencode(htp_uri_t *uri);
1130
1143
 
1131
1144
bstr *htp_tx_get_request_headers_raw(htp_tx_t *tx);
 
1145
bstr *htp_tx_get_response_headers_raw(htp_tx_t *tx);
1132
1146
 
1133
1147
#endif  /* _HTP_H */
1134
1148