Commit Graph

24 Commits (22d05c289ca10fe11c7801e2f879a6f364ca61a7)

Author SHA1 Message Date
Philippe Antoine 649f30b46b htp: macro hygiene
make clang-tidy happy even if unneeded for the temporary workaround
9 months ago
Philippe Antoine 9e73de3d80 http: aliases for htp log code
In preparation of libhtp rust
9 months ago
Philippe Antoine 486bdc99c0 http: aliases for opaque htp_conn_t
In preparation of libhtp rust
9 months ago
Philippe Antoine e079604f79 http: aliases for opaque htp_tx_data_t
In preparation of libhtp rust
9 months ago
Philippe Antoine 72c08cb94e http: htp_headers_t alias for htp_table_t
In preparation of libhtp rust
10 months ago
Philippe Antoine 42ed59aa21 http: aliases for htp opaque htp_headers_t
In preparation of libhtp rust
10 months ago
Philippe Antoine b0db4e2dbe http: aliases for htp opaque htp_header_t
In preparation of libhtp rust
10 months ago
Philippe Antoine a0e44ebb17 http: use even more aliases for htp opaque htp_tx_t
For request and response headers

In preparation of libhtp rust
10 months ago
Philippe Antoine 23050d70ed http: aliases for htp opaque htp_tx_t
In preparation of libhtp rust
10 months ago
Philippe Antoine 5ee6e7cef0 http: aliases for htp progresses
In preparation of libhtp rust
10 months ago
Philippe Antoine 8c612246c1 http: aliases for htp protocol versions
In preparation of libhtp rust
10 months ago
Philippe Antoine ef133942e8 http: aliases for htp stream states
In preparation of libhtp rust
10 months ago
Philippe Antoine a4479c03f6 http: aliases for htp methods
In preparation of libhtp rust
10 months ago
Philippe Antoine 604b625616 http: aliases for htp auths
In preparation of libhtp rust
10 months ago
Philippe Antoine fcfc10c95f http: aliases for htp flags
In preparation of libhtp rust
10 months ago
Philippe Antoine b482ae3f04 http: aliases for htp server personalities
In preparation of libhtp rust
10 months ago
Philippe Antoine 99ab3f7dc7 http: aliases for htp statuses
In preparation of libhtp rust
10 months ago
Jason Ish 44388f1b69 src: make include guards more library friendly
Include guards for libraries should use a prefix that is meaningful for
the library to avoid conflicts with other user code. For Suricata, use
SURICATA.

Additionally, remove the pattern of leading and trailing underscores as
these are reserved for the language implementation per the C and C++
standards.
2 years ago
Jeff Lucovsky 28c950cef5 htp/bool: Use bool instead of int 2 years ago
Liza Opar 3b1558946d misc: improve code documentation
Task #6383
2 years ago
Philippe Antoine 02f2602dde src: rework includes as per cppclean 3 years ago
Victor Julien ab1200fbd7 compiler: more strict compiler warnings
Set flags by default:

    -Wmissing-prototypes
    -Wmissing-declarations
    -Wstrict-prototypes
    -Wwrite-strings
    -Wcast-align
    -Wbad-function-cast
    -Wformat-security
    -Wno-format-nonliteral
    -Wmissing-format-attribute
    -funsigned-char

Fix minor compiler warnings for these new flags on gcc and clang.
9 years ago
Victor Julien a8b971c710 http: strip 'proxy' part of http_uri
Strip the 'proxy' parts from the normalized uri as inspected by http_uri,
urilen, pcre /U and others.

  In a request line like:
    GET http://suricata-ids.org/blah/ HTTP/1.1
  the normalized URI will now be:
    /blah/

This doesn't affect http_raw_uri. So matching the hostname, etc is still
possible through this keyword.

Additionally, a new per HTTP 'personality' option was added to change
this behavior: "uri-include-all":

  uri-include-all: <true|false>
    Include all parts of the URI. By default the
    'scheme', username/password, hostname and port
    are excluded. Setting this option to true adds
    all of them to the normalized uri as inspected
    by http_uri, urilen, pcre with /U and the other
    keywords that inspect the normalized uri.
    Note that this does not affect http_raw_uri.

So adding uri-include-all:true to all personalities in the yaml will
restore the old default behavior.

Ticket 1008.
12 years ago
Anoop Saldanha 48cf0585fb Suricata upgrade to libhtp 0.5.x.
Remove the support for now unsupported personalities from libhtp -
TOMCAT_6_0, APACHE and APACHE_2_2.  We instead use the APACHE_2
personality.
13 years ago