summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-21Control: unbolt rend_data from HS desc eventDavid Goulet
The HS_DESC event was using rend_data_t from the dir connection to reply the onion address and authentication type. With the new HSFETCH command, it's now possible to fetch a descriptor only using the descriptor id thus resulting in not having an onion address in any HS_DESC event. This patch removes rend_query from the hs desc control functions and replace it by an onion address string and an auth type. On a successful fetch, the service id is taken from the fetched descriptor. For that, an extra parameter is added to "store as a client" function that contains the cache entry stored. This will make the control event functions scale more easily over time if other values not present in rend_data_t are needed since the rend_data from the dir connection might not contained everything we need. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Refactor HS descriptor fetch to support descriptor IDDavid Goulet
Big refactor of the HS client descriptor fetch functionnality. This allows to fetch an HS descriptor using only a descriptor ID. Furthermore, it's also possible to provide a list of HSDir(s) now that are used instead of the automatically choosen one. The approach taken was to add a descriptor_id field to the rend_data_t structure so it can be used, if available, by the HS client. The onion address field however has priority over it that is if both are set, the onion address is used to fetch the descriptor. A new public function is introduced called rend_client_fetch_v2_desc(...) that does NOT lookup the client cache before fetching and can take a list of HSDirs as a parameter. The HSFETCH control command now uses this new function thus making it work and final. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Control: add HS_DESC_CONTENT eventDavid Goulet
As defined in section 4.1.26 in the control-spec.txt, this new event replies the content of a successfully fetched HS descriptor. This also adds a unit test for the controller event. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Control: groud work for the HSFETCH commandDavid Goulet
This adds the command on the controller side that parses and validate arguments but does nothing for now. The HS desriptor fetch must be modularized a bit more before we can use the command. See control-spec.txt section 3.26 for more information on this command. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Remove onion address usage in lookup_last_hid_serv_requestDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-16code style fixesNick Mathewson
2015-04-16Fix missing-initializer warningNick Mathewson
2015-04-16Merge remote-tracking branch 'arma/ticket8766'Nick Mathewson
2015-04-15Fix indentation on a blockNick Mathewson
2015-04-15Remove spurious warnNick Mathewson
2015-04-15Merge remote-tracking branch 'sebastian/bug14784'Nick Mathewson
2015-04-15Fix another space issueNick Mathewson
2015-04-15Merge remote-tracking branch 'teor/fix-spaces-20150415'Nick Mathewson
2015-04-15changes file for 14391Nick Mathewson
2015-04-15Merge remote-tracking branch 'dgoulet/bug14391_026_v2'Nick Mathewson
2015-04-15chagnes file for 15542Nick Mathewson
2015-04-15Make --hash-password imply --hush to prevent unnecessary noise.cypherpunks
2015-04-15Fix spaces in crypto.h and test-memwipe.cteor
2015-04-10Disable the udp_socket_trick_blackbox tests that fail due to #12377Yawning Angel
Till someone writes get_interface_address6 interface enumeration that is routing table aware, these tests will continue to fail on certain systems because the get_interface_address6() code is broken.
2015-04-09Collect badness values in ntor_ref.py; don't just clobber.Nick Mathewson
Fixes bug 15591; patch from joelanders
2015-04-08update url in HACKING fileRoger Dingledine
2015-04-07Merge branch 'bug15604_squashed'Nick Mathewson
2015-04-07Set ConnDirectionStatistics back to 0 if not running as relay.rl1987
2015-04-07Merge branch 'bug15541_squashed'Nick Mathewson
2015-04-07Update other entries in CMDLINE_ONLY_OPTIONS to use values from ↵rl1987
takes_argument_t.
2015-04-07Print the error message for --dump-config even if no arguments are given.rl1987
2015-04-07Merge branch 'doc15550_squashed'Nick Mathewson
2015-04-07Improve descriptions of statistics-related torrc options.rl1987
2015-04-07Add lukas to doc/HACKING pakager listNick Mathewson
2015-04-06Fix error message in do_dump_config().rl1987
2015-04-06Fix the memory leak in `warn_if_option_path_is_relative()`.Yawning Angel
Fixes coverity defect CID 1293337, not in any released version of tor.
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-06bump version to 0.2.6.7-devNick Mathewson
2015-04-06Forward-port today's changelogs and release notesNick Mathewson
2015-04-06bump version to 0.2.6.7Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-04-06bump 0.2.5 version to 0.2.5.12Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-04-06Bump 0.2.4 version more placesNick Mathewson
2015-04-06Bump 0.2.4 versionNick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-04-06Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-04-06Changes file for bug15601Nick Mathewson
2015-04-06Handle empty/zero length encoded intro points more gracefully.Yawning Angel
In theory these should never the triggered as the only caller now validates the parameters before this routine gets called.
2015-04-06Treat empty introduction points sections as missing.Yawning Angel
Found by DonnchaC.
2015-04-06Validate the RSA key size received when parsing INTRODUCE2 cells.Yawning Angel
Fixes bug 15600; reported by skruffy
2015-04-03Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-03Decrease the amount of rend circ relaunches for hidden services.George Kadianakis
2015-04-03... and if we do get multiple INTRODUCE1s on a circuit, kill the circuitGeorge Kadianakis
(Sending a nak would be pointless.) See ticket 15515 for discussion.