From 2e6604f42ee614156ceeb29bdcab5c78cc1d84ba Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 29 Jun 2011 12:31:17 -0400 Subject: Record username/password data in socks_request_t This change also requires us to add and use a pair of allocator/deallocator functions for socks_request_t, instead of using tor_malloc_zero/tor_free directly. --- src/or/buffers.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/buffers.h') diff --git a/src/or/buffers.h b/src/or/buffers.h index 35c1dd2ea5..fad509e4a1 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -41,6 +41,8 @@ int fetch_from_buf_http(buf_t *buf, char **headers_out, size_t max_headerlen, char **body_out, size_t *body_used, size_t max_bodylen, int force_complete); +socks_request_t *socks_request_new(void); +void socks_request_free(socks_request_t *req); int fetch_from_buf_socks(buf_t *buf, socks_request_t *req, int log_sockstype, int safe_socks); int fetch_from_buf_socks_client(buf_t *buf, int state, char **reason); -- cgit v1.2.3-54-g00ecf