Commit Graph

15 Commits (8f6795d049e876f374c3e828b3e21ef4fa4ed6d9)

Author SHA1 Message Date
Philippe Antoine 5ee6e7cef0 http: aliases for htp progresses
In preparation of libhtp rust
7 months ago
Philippe Antoine 8c612246c1 http: aliases for htp protocol versions
In preparation of libhtp rust
7 months ago
Philippe Antoine ef133942e8 http: aliases for htp stream states
In preparation of libhtp rust
7 months ago
Philippe Antoine a4479c03f6 http: aliases for htp methods
In preparation of libhtp rust
7 months ago
Philippe Antoine 604b625616 http: aliases for htp auths
In preparation of libhtp rust
7 months ago
Philippe Antoine fcfc10c95f http: aliases for htp flags
In preparation of libhtp rust
7 months ago
Philippe Antoine b482ae3f04 http: aliases for htp server personalities
In preparation of libhtp rust
7 months ago
Philippe Antoine 99ab3f7dc7 http: aliases for htp statuses
In preparation of libhtp rust
7 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.
1 year 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.
8 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.
12 years ago