Opened 8 months ago

Last modified 4 months ago

#27801 new enhancement

tor_api: CreateConnection() interface

Reported by: sysrqb Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: 040-deferred-201915
Cc: Actual Points:
Parent ID: #25510 Points:
Reviewer: Sponsor:


In ticket:26653#comment:8 I mentioned it may be nice if there was an easier way of requesting a new connection other than via a SOCKS connection. Adding an interface for creating a connection when roughly the same parameters Tor receives from the SOCKS handshake. In fact, I wonder if providing this as a wrapper around a default SOCKS client implementation may be an easy way of doing this.

Something like:

 * Tells Tor to open a socket for a client connection to the requested
 * destination.  Return the socket.
SOCKS_SOCKET tor_main_create_connection(tor_main_configuration_t *cfg,
                                        const char * hostname,
                                        uint16_t port,
                                        const char * stream_isolation);

Note, we don't need this for Tor Browser for Android. This is simply a more general idea.

Child Tickets

Change History (5)

comment:1 Changed 8 months ago by nickm

Milestone: Tor: unspecifiedTor: 0.3.6.x-final

adding for consideration to 0.3.6

comment:2 Changed 8 months ago by nickm

Sponsor: Sponsor8-can

comment:3 Changed 7 months ago by nickm

Milestone: Tor: 0.3.6.x-finalTor: 0.4.0.x-final

Tor 0.3.6.x has been renamed to 0.4.0.x.

comment:4 Changed 4 months ago by gaba

Sponsor: Sponsor8-can

comment:5 Changed 4 months ago by nickm

Keywords: 040-deferred-201915 added
Milestone: Tor: 0.4.0.x-finalTor: unspecified

Deferring some tickets from 0.4.0 without proposing them for later. Please tag with 041-proposed if you want to do them.

Note: See TracTickets for help on using tickets.