mirror of https://github.com/OISF/suricata
				
				
				
			
			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.
		
		
		
		
		
			
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
| /*
 | |
|  * LibHTP (http://www.libhtp.org)
 | |
|  * Copyright 2009,2010 Ivan Ristic <ivanr@webkreator.com>
 | |
|  *
 | |
|  * 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 <fcntl.h>
 | |
| #include <stdio.h>
 | |
| #include <stdlib.h>
 | |
| #include <sys/types.h>
 | |
| #include <sys/stat.h>
 | |
| 
 | |
| #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 */
 | |
| 
 |