tor  0.4.0.1-alpha
proto_socks.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef TOR_PROTO_SOCKS_H
8 #define TOR_PROTO_SOCKS_H
9 
10 struct socks_request_t;
11 struct buf_t;
12 
13 struct socks_request_t *socks_request_new(void);
14 void socks_request_free_(struct socks_request_t *req);
15 #define socks_request_free(req) \
16  FREE_AND_NULL(socks_request_t, socks_request_free_, (req))
17 int fetch_from_buf_socks(struct buf_t *buf, socks_request_t *req,
18  int log_sockstype, int safe_socks);
19 int fetch_from_buf_socks_client(buf_t *buf, int state, char **reason);
20 
21 #endif /* !defined(TOR_PROTO_SOCKS_H) */