ported relevant shared http declarations into header file

This commit is contained in:
mathewmarcus 2018-07-14 15:55:35 -05:00
parent d89483ed05
commit 689b20f60a
2 changed files with 14 additions and 4 deletions

View file

@ -50,6 +50,7 @@ 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'
@ -61,12 +62,12 @@ extern char *HYDRA_EXIT;
char *buf;
char *cond;
typedef struct header_node {
struct header_node {
char *header;
char *value;
char type;
struct header_node *next;
} t_header_node, *ptr_header_node;
};
typedef struct cookie_node {
char *name;
@ -81,8 +82,6 @@ int32_t auth_flag = 0;
char cookie[4096] = "", cmiscptr[1024];
extern char *webtarget;
extern char *slash;
int32_t webport, freemischttpform = 0;
char bufferurl[6096 + 24], cookieurl[6096 + 24] = "", userheader[6096 + 24] = "", *url, *variables, *optional1;

11
hydra-http.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef _HYDRA_HTTP_H
#define _HYDRA_HTTP_H
typedef struct header_node t_header_node, *ptr_header_node;
extern char *webtarget;
extern char *slash;
extern char *optional1;
extern ptr_header_node parse_options(char *miscptr);
#endif