/* * LibHTP (http://www.libhtp.org) * Copyright 2009,2010 Ivan Ristic * * LibHTP is an open source product, released under terms of the General Public Licence * version 2 (GPLv2). Please refer to the file LICENSE, which contains the complete text * of the license. * * In addition, there is a special exception that allows LibHTP to be freely * used with any OSI-approved open source licence. Please refer to the file * LIBHTP_LICENSING_EXCEPTION for the full text of the exception. * */ #ifndef _TEST_H #define _TEST_H #include #include #include #include #include #define UNKNOWN 0 #define CLIENT 1 #define SERVER 2 #ifndef O_BINARY #define O_BINARY 0 #endif typedef struct test_t test_t; struct test_t { char *buf; size_t pos; size_t len; char *chunk; size_t chunk_offset; size_t chunk_len; int chunk_direction; }; int test_run(const char *testsdir, const char *testname, htp_cfg_t *cfg, htp_connp_t **connp); #endif /* _TEST_H */