Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #27801

Closed (moved)
Open
Opened Sep 20, 2018 by Matthew Finkel@sysrqb

tor_api: CreateConnection() interface

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.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#27801