[tor-commits] [stem/master] Add ADD_ONION, DEL_ONION, and HSPOST to tor-prompt

atagar at torproject.org atagar at torproject.org
Fri May 8 17:16:45 UTC 2015


commit 6e0ffacf8df46cb72463a95c3965aff973ac01e0
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri May 8 10:16:26 2015 -0700

    Add ADD_ONION, DEL_ONION, and HSPOST to tor-prompt
    
    Recognizing the new hidden service commands added in...
    
      https://gitweb.torproject.org/torspec.git/commit/?id=f5ff369
      https://gitweb.torproject.org/torspec.git/commit/?id=aaf2434
---
 stem/interpreter/settings.cfg |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/stem/interpreter/settings.cfg b/stem/interpreter/settings.cfg
index 696ff3f..e026f6f 100644
--- a/stem/interpreter/settings.cfg
+++ b/stem/interpreter/settings.cfg
@@ -81,7 +81,10 @@ help.general
 |  ATTACHSTREAM - associates an application's stream with a tor circuit
 |  REDIRECTSTREAM - sets a stream's destination
 |  CLOSESTREAM - closes the given stream
+|  ADD_ONION - create a new hidden service
+|  DEL_ONION - delete a hidden service that was created with ADD_ONION
 |  HSFETCH - retrieve a hidden service descriptor, providing it in a HS_DESC_CONTENT event
+|  HSPOST - uploads a hidden service descriptor
 |  RESOLVE - issues an asynchronous dns or rdns request over tor
 |  TAKEOWNERSHIP - instructs tor to quit when this control connection is closed
 |  PROTOCOLINFO - queries version and controller authentication information
@@ -113,7 +116,10 @@ help.usage CLOSECIRCUIT => CLOSECIRCUIT CircuitID [IfUnused]
 help.usage ATTACHSTREAM => ATTACHSTREAM StreamID CircuitID [HOP=HopNum]
 help.usage REDIRECTSTREAM => REDIRECTSTREAM StreamID Address [Port]
 help.usage CLOSESTREAM => CLOSESTREAM StreamID Reason [Flag]
+help.usage ADD_ONION => KeyType:KeyBlob [Flags=Flag] (Port=Port [,Target])...
+help.usage DEL_ONION => ServiceID
 help.usage HSFETCH => HSFETCH (HSAddress/v2-DescId) [SERVER=Server]...
+help.usage HSPOST => [SERVER=Server] DESCRIPTOR
 help.usage RESOLVE => RESOLVE [mode=reverse] address
 help.usage TAKEOWNERSHIP => TAKEOWNERSHIP
 help.usage PROTOCOLINFO => PROTOCOLINFO [ProtocolVersion]
@@ -247,10 +253,20 @@ help.description.closestream
 |Closes the given stream, the reason being an integer matching a reason as
 |per section 6.3 of the tor-spec.
 
+help.description.add_onion
+|Creates a new hidden service. Unlike 'SETCONF HiddenServiceDir...' this
+|doesn't persist the service to disk.
+
+help.description.del_onion
+|Delete a hidden service that was created with ADD_ONION.
+
 help.description.hsfetch
 |Retrieves the descriptor for a hidden service. This is an asynchronous
 |request, with the descriptor provided by a HS_DESC_CONTENT event.
 
+help.description.hspost
+|Uploads a descriptor to a hidden service directory.
+
 help.description.resolve
 |Performs IPv4 DNS resolution over tor, doing a reverse lookup instead if
 |"mode=reverse" is included. This request is processed in the background and



More information about the tor-commits mailing list