diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-06-29 12:31:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-06-29 13:08:46 -0400 |
commit | 2e6604f42ee614156ceeb29bdcab5c78cc1d84ba (patch) | |
tree | 47cf86914ee90bf09bbc56a78366ee9edde013db /src/or/buffers.h | |
parent | 204bce7e3ca0f60cfec1d8be700848309f605abd (diff) | |
download | tor-2e6604f42ee614156ceeb29bdcab5c78cc1d84ba.tar.gz tor-2e6604f42ee614156ceeb29bdcab5c78cc1d84ba.zip |
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.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |