You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust/htp
Jason Ish f0411c079d rust: fix compiler warning for confusing lifetimes
For example:

error: lifetime flowing from input to output with different syntax can be confusing
   --> htp/src/headers.rs:475:16
    |
475 | fn null(input: &[u8]) -> IResult<&[u8], ParsedBytes> {
    |                ^^^^^             -----  ----------- the lifetimes get resolved as `'_`
    |                |                 |
    |                |                 the lifetimes get resolved as `'_`
    |                this lifetime flows to the output
    |
note: the lint level is defined here
   --> htp/src/lib.rs:3:9

This currently only happens when using the Rust nightly compiler, which
we use for our fuzz builds.
1 month ago
..
fuzz http: Use libhtp-rs. 3 months ago
src rust: fix compiler warning for confusing lifetimes 1 month ago
.gitignore http: Use libhtp-rs. 3 months ago
Cargo.toml rust: update deps 1 month ago
LICENSE http: Use libhtp-rs. 3 months ago
README.md http: Use libhtp-rs. 3 months ago
cbindgen.toml rust/htp: remove unused code 3 months ago

README.md

LibHTP


Copyright 2009-2010 Open Information Security Foundation
Copyright 2010-2013 Qualys, Inc.


LibHTP is a security-aware parser for the HTTP protocol and the related bits and pieces. The goal of the project is mainly to support the Suricata use case. Other use cases might not be fully supported, and we encourage you to cover these.

See the LICENSE file distributed with this work for information regarding licensing, copying and copyright ownership.

Usage

Start using libHTP by including it in your project's Cargo.toml dependencies. The base library will also be required for using common types.

The minimum supported version of rustc is 1.58.1.

Example

[dependencies]
htp = "2.0.0"

FFI Support

LibHTP has a foreign function interface for use in C/C++ projects. FFI Support can be enabled by building with the cbindgen feature.

# Install cbindgen which is required to generate headers
cargo install --force cbindgen

# Build headers and shared objects
make

LICENSE

LibHTP is licensed under the BSD 3-Clause license (also known as "BSD New" and "BSD Simplified".) The complete text of the license is enclosed in the file LICENSE.