From 689b20f60afbc210267da94d414a14fb6baa181d Mon Sep 17 00:00:00 2001 From: mathewmarcus Date: Sat, 14 Jul 2018 15:55:35 -0500 Subject: [PATCH] ported relevant shared http declarations into header file --- hydra-http-form.c | 7 +++---- hydra-http.h | 11 +++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 hydra-http.h diff --git a/hydra-http-form.c b/hydra-http-form.c index 3b8a3f3..86cc71d 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -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; diff --git a/hydra-http.h b/hydra-http.h new file mode 100644 index 0000000..1718ffd --- /dev/null +++ b/hydra-http.h @@ -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