mirror repository of the tor core protocol in case of issues
Go to file
David Goulet 91009dce97 Refactor rend_cache_lookup_entry() and how it's used
Here is why:

1) v0 descriptors are deprecated since 0.2.2.1 and not suppose to be alive
in the network anymore. This function should only serve v2 version for now
as the default.

2) It should return different error code depending on what's the actual
error is. Right now, there is no distinction between a cache entry not found
and an invalid query.

3) This function should NOT test if the intro points are usable or not. This
adds some load on a function that should be "O(1)" and do one job.
Furthermore, multiple callsites actually already test that doing twice the
job...

4) While adding control event, it would be useful to be able to lookup a
cache entry without having it checking the intro points. There are also
places in the code that do want to lookup the cache entry without doing
that.

Fixes #14391

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-01-27 12:04:40 -05:00
changes changes file for bug14350 2015-01-26 10:06:36 -05:00
contrib Actually remove LOCALSTATEDIR@/run/tor line from tor.service.in 2015-01-11 20:49:19 -05:00
doc Merge branch 'bug14084' 2015-01-20 14:07:37 -05:00
m4 Add pkg.m4 to use pkgconfig macros 2014-12-23 11:39:48 -05:00
scripts Commit the update-copyrights script. 2015-01-02 14:28:21 -05:00
src Refactor rend_cache_lookup_entry() and how it's used 2015-01-27 12:04:40 -05:00
.gitignore Split the slow unit tests into their own binary 2015-01-23 11:15:53 -05:00
acinclude.m4 Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
autogen.sh Use a nicely written autoconf macro to determine the sign of a type 2013-02-07 16:23:48 -05:00
ChangeLog edit the changelog one last time 2014-12-31 13:09:09 -05:00
configure.ac configure.ac: fix disabling systemd notification support 2015-01-26 10:03:45 -05:00
Doxyfile.in Fix up all doxygen warnings other than "foo is not documented" 2011-03-16 14:47:27 -04:00
INSTALL Small fixes for the 2702 implementation 2011-04-02 12:15:08 +02:00
LICENSE Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
Makefile.am Better workaround for CFLAGS issues from #14072; fixes #14162 2015-01-10 17:21:11 -05:00
Makefile.nmake Clean up the MVSC nmake files so they work again. 2014-09-09 10:27:05 -04:00
README Update verbiage in README to mention autogen.sh 2014-11-04 09:01:46 -05:00
ReleaseNotes Forward-port changelog and release notes for 0.2.5.10 2014-10-24 09:21:40 -04:00

Tor protects your privacy on the internet by hiding the connection
between your Internet address and the services you use. We believe Tor
is reasonably secure, but please ensure you read the instructions and
configure it properly.

To build Tor from source:
        ./configure && make && make install

To build Tor from a just-cloned git repository:
        sh autogen.sh && ./configure && make && make install

Home page:
        https://www.torproject.org/

Download new versions:
        https://www.torproject.org/download/download.html

Documentation, including links to installation and setup instructions:
        https://www.torproject.org/docs/documentation.html

Making applications work with Tor:
        https://wiki.torproject.org/projects/tor/wiki/doc/TorifyHOWTO

Frequently Asked Questions:
        https://www.torproject.org/docs/faq.html


To get started working on Tor development:
        See the doc/HACKING file.