| 213 | } |
| 214 | |
| 215 | static struct io_plan *io_tor_connect_do_req(struct io_conn *conn, |
| 216 | struct connecting_socks *connect) |
| 217 | { |
| 218 | /* make the init request */ |
| 219 | connect->buffer[0] = SOCKS_V5; |
| 220 | connect->buffer[1] = 1; |
| 221 | connect->buffer[2] = SOCKS_NOAUTH; |
| 222 | |
| 223 | status_io(LOG_IO_OUT, NULL, "proxy", connect->buffer, SOCK_REQ_METH_LEN); |
| 224 | return io_write(conn, connect->buffer, SOCK_REQ_METH_LEN, |
| 225 | &io_tor_connect_after_req_to_connect, connect); |
| 226 | } |
| 227 | |
| 228 | /* called when we want to connect to TOR SOCKS5 */ |
| 229 | struct io_plan *io_tor_connect(struct io_conn *conn, |
nothing calls this directly
no test coverage detected