mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
moved relevant header macros and functions into http header file
This commit is contained in:
parent
a6db85b963
commit
4b1a945c45
2 changed files with 10 additions and 7 deletions
|
@ -49,15 +49,8 @@ Added fail or success condition, getting cookies, and allow 5 redirections by da
|
|||
|
||||
*/
|
||||
|
||||
#include "hydra-mod.h"
|
||||
#include "hydra-http.h"
|
||||
|
||||
/* HTTP Header Types */
|
||||
#define HEADER_TYPE_USERHEADER 'h'
|
||||
#define HEADER_TYPE_USERHEADER_REPL 'H'
|
||||
#define HEADER_TYPE_DEFAULT 'D'
|
||||
#define HEADER_TYPE_DEFAULT_REPL 'd'
|
||||
|
||||
extern char *HYDRA_EXIT;
|
||||
char *buf;
|
||||
char *cond;
|
||||
|
|
10
hydra-http.h
10
hydra-http.h
|
@ -1,6 +1,14 @@
|
|||
#ifndef _HYDRA_HTTP_H
|
||||
#define _HYDRA_HTTP_H
|
||||
|
||||
#include "hydra-mod.h"
|
||||
|
||||
/* HTTP Header Types */
|
||||
#define HEADER_TYPE_USERHEADER 'h'
|
||||
#define HEADER_TYPE_USERHEADER_REPL 'H'
|
||||
#define HEADER_TYPE_DEFAULT 'D'
|
||||
#define HEADER_TYPE_DEFAULT_REPL 'd'
|
||||
|
||||
typedef struct header_node t_header_node, *ptr_header_node;
|
||||
|
||||
extern char *webtarget;
|
||||
|
@ -8,4 +16,6 @@ extern char *slash;
|
|||
extern char *optional1;
|
||||
|
||||
extern ptr_header_node parse_options(char *miscptr);
|
||||
extern int32_t add_header(ptr_header_node * ptr_head, char *header, char *value, char type);
|
||||
extern char *stringify_headers(ptr_header_node *ptr_head);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue