[tor-bugs] #6411 [Tor Hidden Services]: Adding hidden services through control socket
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Jul 18 19:30:46 UTC 2012
#6411: Adding hidden services through control socket
-------------------------------------+--------------------------------------
Reporter: kevinevans | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Tor Hidden Services | Version: Tor: 0.2.3.19-rc
Keywords: hidden service, control | Parent:
Points: | Actualpoints:
-------------------------------------+--------------------------------------
Okay, first off, I should say: 1) I'm relatively new to Tor and 2) I don't
know C that well.
A while back, I thought that it was a bad idea to have the hidden service
hostname/privkey being written to the filesystem, unless it's either a
tmpfs or an encrypted volume. For programs like Torchat (or alike), it
would seem better to be able to hide the private key/hostname in an
encrypted file (for example) versus in a filesystem.
In the patch, I have added an ADDSERVICE command (after it's
authenticated), and its arguments are:
[hostname] [private key] [vport0] [rport0] [vport1] [rport1] ... [vport*]
[rport*]
I wasn't sure about which status codes to use, so I just used whatever.
The code is rather inefficient, frankly because I'm awful at C and I'm
probably causing a memory leak by not freeing some memory.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6411>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list