413 Commits

Author SHA1 Message Date
Nick Mathewson
d92fc8b17b 15333: Correct replies for GETINFO, SETCONF
SETCONF says 250 ok on success, like everything else.

GETINFO had some junk left around in it that was left over from good
old control-spec-v0.txt.
2017-08-23 09:36:33 -04:00
Nick Mathewson
3cc3b86299 14948: Document when GETINFO md/ and GETINFO ns/ exist 2017-08-23 09:30:13 -04:00
Roger Dingledine
205c60bcda clarify what "contents of a cookie" are 2017-07-05 14:29:17 -04:00
Damian Johnson
630116feba Drop 'version added' clause from 'GETINFO sr/current'
This clause was added in...

  https://gitweb.torproject.org/torspec.git/commit/?id=5c82d5e

Commit message and ticket make no mention of 'GETINFO sr/current' go I suspect
Daniel meant for this to concern his addition. However, if that's the case then
according to the ticket it should be 0.3.1.1-alpha.

Just gonna drop this clause since it's probably wrong.
2017-07-03 15:19:33 -07:00
Nick Mathewson
b38e7ef011 control-spec: Clarify that the 16MB buffer limit went away in 2007
Closes ticket 22742.
2017-06-29 10:39:44 -04:00
Nick Mathewson
3efcd9340b Merge branch 'ticket22684_spec' 2017-06-29 10:17:10 -04:00
Nick Mathewson
378699c641 Specify the new {desc,md}/download-enabled GETINFO targets
Specifies ticket 22684.
2017-06-21 16:46:19 -04:00
Roger Dingledine
d09c357bda add missing word 2017-06-20 15:35:50 -04:00
Nick Mathewson
ccd21c0bb7 Clarify NEWDESC description; close 16556 2017-06-20 15:32:00 -04:00
Nick Mathewson
c07abd047d note that CLIENTS_SEEN is rounded; close 4688 2017-05-26 10:28:32 -04:00
Nick Mathewson
c815aad008 annotate %include stuff with version 2017-05-19 09:31:46 -04:00
Daniel Pinto
5c82d5e5e8 Adds GETCONF FORCE flag and getinfo config-can-saveconf #1922 2017-05-18 22:53:04 +01:00
David Goulet
1412d79159 control: Add to HS_DESC event the QUERY_NO_HSDIR reason
It is possible that a descriptor fetch fails because there are no suitable
HSDir that the client can pick. In this case, return the QUERY_NO_HSDIR
reason which makes HsDir to become "UNKNOWN" both in the HS_DESC and
HS_DESC_CONTENT event.

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-03 09:37:06 -04:00
Nick Mathewson
6446210bfc control-spec: document GUARD_WAIT circuit status code 2017-01-30 10:32:32 -05:00
Roger Dingledine
54083d9f76 clean up sr/{current,previous} even more 2017-01-11 19:40:41 -05:00
Nick Mathewson
6602c67e7d Try to clean up sr/{current,previous} a little 2017-01-11 14:37:48 -05:00
Nick Mathewson
76ad2dadc4 Merge remote-tracking branch 'dgoulet/ticket19925_01' 2017-01-11 14:36:44 -05:00
Nick Mathewson
2c52061ab3 Merge remote-tracking branch 'jryans/dependant-corrected' 2017-01-11 09:28:09 -05:00
Nick Mathewson
a129533e0c Merge remote-tracking branch 'jryans/getinfo-program-name' 2017-01-11 09:27:19 -05:00
David Goulet
e7aaf1448a control: Add shared random value to GETINFO
Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-09 11:26:20 -05:00
David Goulet
f2756e0d34 control: Fix some indentation issues and a key value
Apart from the indentation, the "download/" key for the GETINFO command is
wrong, it's actually "downloads/" so fixing that.

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-09 10:09:58 -05:00
J. Ryan Stinnett
e2f2974d67 Use the correct spelling for "Dependent" in the control protocol.
Fixes #18146.
2017-01-03 11:52:52 -06:00
J. Ryan Stinnett
c5ff1b1965 Clarify program name is optional in GETINFO version
Fixes #20014.
2016-12-20 23:46:27 -06:00
teor
b8fe774cb5 Add a NonAnonymous flag to ADD_ONION in control-spec
Tor checks that the flag matches the onion service anonymity configured
using OnionServiceSingleHopMode and OnionServiceNonAnonymousMode.

Tor refuses to create unflagged onion service using ADD_ONION, if they
would be non-anonymous. The error is:
512 Tor is in non-anonymous onion mode

Similarly, if the NonAnonymous flag is present, and Tor has the default
anonymous onion config:
512 Tor is in anonymous onion mode
2016-09-13 10:43:29 -04:00
teor (Tim Wilson-Brown)
19df57848e
Update and clarify exit-policy/reject-private/relay for #18456
Add ExitPolicyRejectLocalInterfaces option.
Make it clear that the current option values determine the output.
2016-07-01 15:43:47 +10:00
Andrea Shepard
12d462f192 Specify download/ GETINFO queries for controller 2016-06-30 13:43:16 -04:00
Roger Dingledine
c15dada150 annotate getinfo dir-usage with when we removed the feature
see ticket 19035 for when we removed this feature.
2016-05-27 15:17:45 -04:00
Nick Mathewson
79ed432e5e document when we added 15588 2016-05-16 08:02:25 -04:00
Nick Mathewson
4749bf55c4 Merge remote-tracking branch 'special/feature15588' 2016-05-09 14:45:46 -04:00
Nick Mathewson
4e6f2abdcf Merge remote-tracking branch 'teor/bug18851' 2016-05-04 16:24:04 -04:00
teor (Tim Wilson-Brown)
56b3ef3d71 Clarify GETINFO status/reachability-succeeded/dir with no DirPort
It returns 1 when there's no need for a reachability check.
2016-04-20 14:26:08 +10:00
Yawning Angel
1632d6e310 Document the HIBERNATION_STATUS SERVER_STATUS sub-event. 2016-03-30 20:32:20 +00:00
Georg Koppen
03aaace9bd Bug 16081: Document status code consistency in single reply 2015-12-16 08:59:47 -05:00
teor (Tim Wilson-Brown)
d92f97b146 Update control-spec for exit-policy/reject-private/* 2015-11-16 23:40:16 +11:00
Georg Koppen
7f10e7a9d6 Bug 17578: Fix typos in control-spec.txt 2015-11-10 09:12:44 -05:00
Donncha O'Cearbhaill
8401f6bc69 Clarify Replica field in HS_DESC event
Clarify the format of the HS_DESC Replica field and indicate that it is
is defined in rend-spec.txt. Resolves #17226.
2015-10-06 15:15:41 +02:00
Damian Johnson
291b77f572 Trivial revision for HS_DESC
Just fixing some line wrap and case (keywords like 'SHOULD' are uppercase by
convention).
2015-10-03 11:08:57 -07:00
Donncha O'Cearbhaill
69de9ec98c Fix line wrapping 2015-09-08 14:33:48 +02:00
Donncha O'Cearbhaill
4989e73722 Add REPLICA field to HS_DESC CREATED event 2015-09-08 12:24:59 +02:00
Donncha O'Cearbhaill
5be4713efe Documents HS_DESC CREATED event. 2015-09-08 12:23:50 +02:00
Donncha O'Cearbhaill
99fe437487 Add control spec entry for GETINFO hs/service/desc/id/ command 2015-09-08 12:23:32 +02:00
John Brooks
c2865d9111 Add ClientAuth for the ADD_ONION control command
Part of #15588
2015-07-14 00:15:44 -04:00
Damian Johnson
acd48dd75e Document 'GETINFO status/fresh-relay-descs'
Oops. Feature Sebastian kindly added a few months back. Looks like it didn't
make it into the spec.

  https://trac.torproject.org/projects/tor/ticket/14784
2015-07-06 08:32:16 -07:00
Roger Dingledine
3878865046 a stem user got confused by md/*
now try to phrase it in a less confusing way.
2015-06-10 22:40:37 -04:00
Roger Dingledine
236767d172 fix some spelling errors / etc in control spec 2015-06-10 22:37:42 -04:00
Damian Johnson
e0e81d078a Revise NETWORK_LIVENESS spec
Minor revisions for the new NETWORK_LIVENESS event...

  * Include a note about the version when this is being added.

  * No need to say new fields are allowed. This is said near the start of
    section 4.1...

    "Clients MUST tolerate events with arguments and keywords they do not
    recognize"

  * Rejigger the spec's style a tad to be more like other events.
2015-05-19 08:03:13 -07:00
Nick Mathewson
7ec5d394de Clarify that we can expand NETWORK_LIVENESS in the future 2015-05-18 14:47:54 -04:00
Andrea Shepard
44aac630f6 Add NETWORK_LIVENESS event type and network-liveness GETINFO key 2015-05-18 14:45:56 -04:00
Damian Johnson
17f3fe0817 HS_DESC's HSAddress can be 'UNKNOWN'
Commit ba30c1d accidently reverted dgoulet's change from aaf2434 to note that
HSFETCH can result in the address being 'UNKNOWN'.
2015-05-09 11:56:56 -07:00
Donncha O'Cearbhaill
ba30c1df4a Add control spec entry for HSPOST, and update HS_DESC events. (#3523) 2015-05-07 14:15:38 +00:00