]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proto_http: Externalisation of previously internal functions
authorDavid Carlier <dcarlier@afilias.info>
Fri, 25 Sep 2015 13:10:50 +0000 (14:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 12:01:27 +0000 (14:01 +0200)
Needs to expose the HTTP headers 'iterator' and the client's cookie
value extraction functions.

include/proto/proto_http.h
src/proto_http.c

index f5aef3bae42c0e7a3fc311f029ca45c8e6159285..0446b45d6d1a12ed1b878a0194b4c393e20106a7 100644 (file)
@@ -97,7 +97,11 @@ int http_find_full_header2(const char *name, int len,
 int http_find_header2(const char *name, int len,
                      char *sol, struct hdr_idx *idx,
                      struct hdr_ctx *ctx);
+int http_find_next_header(char *sol, struct hdr_idx *idx,
+                          struct hdr_ctx *ctx);
 char *find_hdr_value_end(char *s, const char *e);
+char *extract_cookie_value(char *hdr, const char *hdr_end, char *cookie_name,
+                           size_t cookie_name_l, int list, char **value, int *value_l);
 int http_header_match2(const char *hdr, const char *end, const char *name, int len);
 int http_remove_header2(struct http_msg *msg, struct hdr_idx *idx, struct hdr_ctx *ctx);
 int http_header_add_tail2(struct http_msg *msg, struct hdr_idx *hdr_idx, const char *text, int len);
index 41858bf765385ce4968d1c3d2982052ccd436e2f..f06975d3a2f516fbb0e09abf6f5524d225d1b7dd 100644 (file)
@@ -10993,7 +10993,7 @@ smp_fetch_http_auth_grp(const struct arg *args, struct sample *smp, const char *
  * of values (cookie headers). This makes it faster to abort parsing when no
  * list is expected.
  */
-static char *
+char *
 extract_cookie_value(char *hdr, const char *hdr_end,
                  char *cookie_name, size_t cookie_name_l, int list,
                  char **value, int *value_l)