| 191 | } |
| 192 | |
| 193 | static struct io_plan *io_tor_connect_do_req(struct io_conn *conn, |
| 194 | struct connecting_socks *connect) |
| 195 | { |
| 196 | /* make the init request */ |
| 197 | connect->buffer[0] = SOCKS_V5; |
| 198 | connect->buffer[1] = 1; |
| 199 | connect->buffer[2] = SOCKS_NOAUTH; |
| 200 | |
| 201 | status_io(LOG_IO_OUT, NULL, "proxy", connect->buffer, SOCK_REQ_METH_LEN); |
| 202 | return io_write(conn, connect->buffer, SOCK_REQ_METH_LEN, |
| 203 | &io_tor_connect_after_req_to_connect, connect); |
| 204 | } |
| 205 | |
| 206 | /* called when we want to connect to TOR SOCKS5 */ |
| 207 | struct io_plan *io_tor_connect(struct io_conn *conn, |
nothing calls this directly
no test coverage detected