aboutsummaryrefslogtreecommitdiff
path: root/src/tools/tor-resolve.c
Commit message (Expand)AuthorAge
* Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
* Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32•••This commit is completely mechanical; I used this perl script to make it: #!/usr/bin/perl -w -i.bak -p if (/^\s*\#/) { s/MS_WINDOWS/_WIN32/g; s/\bWIN32\b/_WIN32/g; } Nick Mathewson2012-01-31
* Fix names of functions that convert strings to addrs•••Now let's have "lookup" indicate that there can be a hostname resolution, and "parse" indicate that there wasn't. Previously, we had one "lookup" function that did resolution; four "parse" functions, half of which did resolution; and a "from_str()" function that didn't do resolution. That's confusing and error-prone! The code changes in this commit are exactly the result of this perl script, run under "perl -p -i.bak" : s/tor_addr_port_parse/tor_addr_port_lookup/g; s/parse_addr_port(?=[^_])/addr_port_lookup/g; s/tor_addr_from_str/tor_addr_parse/g; This patch leaves aton and pton alone: their naming convention and behavior is is determined by the sockets API. More renaming may be needed. Nick Mathewson2011-10-11
* Remove the -F option from tor-resolve.•••It used to mean "Force": it would tell tor-resolve to ask tor to resolve an address even if it ended with .onion. But when AutomapHostsOnResolve was added, automatically refusing to resolve .onion hosts stopped making sense. So in 0.2.1.16-rc (commit 298dc95dfd8), we made tor-resolve happy to resolve anything. The -F option stayed in, though, even though it didn't do anything. Oddly, it never got documented. Found while fixing GCC 4.6 "set, unused variable" warnings. Nick Mathewson2011-05-23
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2011-01-03
|\
| * Bump copyright statements to 2011Nick Mathewson2011-01-03
* | Rename log.h to torlog.h•••This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }' Nick Mathewson2010-07-09
* | clean up whitespace in src/toolsNick Mathewson2010-05-20
* | Merge remote branch 'origin/maint-0.2.1'•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2010-02-27
|\|
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
* | Include util.h and log.h as relative paths.•••This shouldn't be necessary, but apparently the Android cross-compiler doesn't respect -I as well as it should. (-I is supposed to add to the *front* of the search path. Android's gcc wrapper apparently likes to add to the end. This is broken, but we need to work around it.) Nathan Freitas2009-09-29
|/
* Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this! Sebastian Hahn2009-09-01
* tor-resolve: Don't automatically refuse .onion addresses.•••If the Tor is running with AutomapHostsOnResolve set, it _is_ reasonable to do a DNS lookup on a .onion address. So instead we make tor-resolve willing to try to resolve anything. Only if Tor refuses to resolve it do we suggest to the user that resolving a .onion address may not work. Fix for bug 1005. Nick Mathewson2009-06-18
* Update copyright to 2009.Karsten Loesing2009-05-04
* In tor-resolve, when the Tor client to use is specified by <hostname>:<port>,...•••svn:r18833 Steven Murdoch2009-03-10
* Remove svn $Id$s from our source, and remove tor --version --version.•••The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867 Nick Mathewson2009-01-04
* Change logging code to use fds instead of stdio. Fixes bug 861, and probably...•••svn:r17456 Nick Mathewson2008-12-02
* Make tor-resolve take a -p port option in addition to the current host:port s...•••svn:r17002 Nick Mathewson2008-09-29
* and then make the indentation right•••svn:r16663 Roger Dingledine2008-08-26
* fix typos from jake's patch earlier (one pointed out by fabian, thanks!)•••svn:r16662 Roger Dingledine2008-08-26
* and make it compile with warnings on•••svn:r16658 Roger Dingledine2008-08-25
* commit jake's patch to include strings with socks5 error numbers•••svn:r16657 Roger Dingledine2008-08-25
* r17358@pc-10-8-1-079: nickm | 2008-07-25 16:41:03 +0200••• Split out the address manipulation functions from compat and util: they were about 21% of the total of those, and spread out too much. svn:r16208 Nick Mathewson2008-07-25
* r18804@catbus: nickm | 2008-03-13 18:18:31 -0400••• Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016 Nick Mathewson2008-03-13
* r18630@catbus: nickm | 2008-03-05 17:31:33 -0500••• Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875 Nick Mathewson2008-03-05
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17639@catbus: nickm | 2008-01-15 19:09:21 -0500••• Fix some hard to trigger but nonetheless real memory leaks spotted by an anonymous contributor. Needs review. Partial backport candidate. svn:r13147 Nick Mathewson2008-01-16
* r17459@catbus: nickm | 2008-01-03 17:44:25 -0500••• add init_logging calls to tor_gencert and tor_resolve svn:r13028 Nick Mathewson2008-01-03
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* r14323@kushana: nickm | 2007-09-04 14:27:33 -0400••• Patch from sjmurdoch to fix dnsleak warning when reverse-resolving via socks5. svn:r11373 Nick Mathewson2007-09-04
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400••• Include fewer redundant headers; use the compiler search paths better. svn:r11060 Nick Mathewson2007-08-08
* r13477@catbus: nickm | 2007-06-17 14:22:03 -0400••• Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645 Nick Mathewson2007-06-17
* r12945@catbus: nickm | 2007-05-25 10:37:12 -0400••• Add a "force" option to tor-resolve so we can make it look up .onion addresses if we know that this will create a virtual mapping we want. svn:r10323 Nick Mathewson2007-05-25
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400••• Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198 Nick Mathewson2007-05-16
* r12764@catbus: nickm | 2007-05-15 17:17:39 -0400••• Enable (and cope with) more GCC 4.2 warnings. svn:r10196 Nick Mathewson2007-05-15
* r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400••• Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections. svn:r9994 Nick Mathewson2007-04-21
* r11992@catbus: nickm | 2007-02-28 12:46:32 -0500••• compile fix on mingw: mingw does not define _MSC_VER. svn:r9682 Nick Mathewson2007-02-28
* r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500••• Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360 Nick Mathewson2007-01-15
* make tor-resolve -x work on intel-endian platforms too•••svn:r9274 Roger Dingledine2007-01-06
* r11719@Kushana: nickm | 2006-12-26 17:41:09 -0500••• Add SOCKS5 and reverse lookup support to C verseion of tor-resolve svn:r9195 Nick Mathewson2006-12-26
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400••• Differentiate more duplicated log entries svn:r8542 Nick Mathewson2006-09-29
* when an exit node gets a malformed begin cell, don't complain to•••the node operator, since he can't do anything about it. svn:r6733 Roger Dingledine2006-07-06
* and resolve long-lines and fix an error string•••svn:r6007 Roger Dingledine2006-02-13
* the last of the log convention conversion. finally.•••svn:r6005 Roger Dingledine2006-02-13
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" domain....•••svn:r5309 Nick Mathewson2005-10-25
* Migrate a few more files to domained logging•••svn:r5285 Nick Mathewson2005-10-18
* Start dividing log messages into logging domains. No, LD_ is not the best of...•••svn:r5284 Nick Mathewson2005-10-18
* clean up some more comments•••svn:r4499 Roger Dingledine2005-06-28
* Docment or add DOCDOC comments to undocumented functions in src/or. Make fun...•••svn:r4411 Nick Mathewson2005-06-11
* update copyright notices.•••svn:r3982 Nick Mathewson2005-04-01