aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
AgeCommit message (Collapse)Author
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-29put in initial support for ".nickname.exit" addresses, to let aliceRoger Dingledine
decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015
2004-11-28correct multiple internal spacesNick Mathewson
svn:r3004
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-23update unit tests to reflect changed interfaceRoger Dingledine
svn:r2952
2004-11-22Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson
- func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
2004-11-12Nobody was using the return values from smartlist_(set|del|del_keeporder), ↵Nick Mathewson
so remove them. svn:r2823
2004-11-12Rename exit_policy to addr_policy, since it gets used for SOCKS and ↵Nick Mathewson
directory connections too. Make all policies get validated in options_validate, and make SOCKS/directory policies get set in options_act. svn:r2819
2004-11-09Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson
target; fix a braino in dirserv.c svn:r2758
2004-11-09Resolve many XXXs and all DOCDOCsNick Mathewson
svn:r2755
2004-11-07More tests for splitNick Mathewson
svn:r2705
2004-11-07Clean up copyrights.Roger Dingledine
Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
2004-11-06Make options no longer a global variable.Roger Dingledine
Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
2004-11-04Add code to read configuration lines from a string as well as a fileNick Mathewson
svn:r2676
2004-11-03- Implement all of control interface except authentication, setconfig,Nick Mathewson
and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661
2004-11-02Use a stricter set of warnings; make them all pass.Nick Mathewson
svn:r2645
2004-11-02canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine
svn:r2644
2004-10-27Pass with -Wstrict-prototypesNick Mathewson
svn:r2614
2004-10-27Use tor_snprintf, not snprintfNick Mathewson
svn:r2609
2004-10-27Replace sprintf with snprintfNick Mathewson
svn:r2602
2004-10-20Check for low _MSC_VER, not high. On windows, always use winsock.Nick Mathewson
svn:r2575
2004-10-19Remove routerinfo_t->is_trusted_dir, and all the twisted machinery used toNick Mathewson
maintain it. Have clients default to the nickname "client" in their certificates. Give a less frightening warning on obsolete (pre-0.0.8) routerinfo_t's. svn:r2568
2004-10-17Fix segfault in unit tests. (Main program is unaffected)Nick Mathewson
svn:r2559
2004-10-16don't assert multiple things in the same tor_assert()Roger Dingledine
svn:r2544
2004-10-16Fix unit tests, make it compileNick Mathewson
svn:r2543
2004-10-14Basic string-join functionalityNick Mathewson
svn:r2521
2004-10-14make it build on amd64Roger Dingledine
svn:r2486
2004-10-14more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine
plus a whitespace patch on config.c from vicman svn:r2482
2004-10-12Use tor_parse_long in more placesNick Mathewson
svn:r2453
2004-10-12Oops, missed oneNick Mathewson
svn:r2445
2004-10-12Note byte-order on result for parse_addr_port()Nick Mathewson
svn:r2444
2004-10-12Add functions to parse addr[:port] consistentlyNick Mathewson
svn:r2440
2004-10-07Turn tor_strpartion into a swiss-army-knife function, so it can terminate or ↵Nick Mathewson
not-terminate appropriately. svn:r2429
2004-10-07Include a dir-signing-key token in directories to tell the parsing entity ↵Nick Mathewson
which key is being used to sign. This is the first step in obsoleting the dirservers file. svn:r2428
2004-10-07Make base-64-encoded DER work, including workaround for ugly openssl ↵Nick Mathewson
misfeature that makes base64 decoding fail when you strip out the newlines. svn:r2423
2004-10-06Refactor fingerprint handling: remember hex digests (no spaces) instead of ↵Nick Mathewson
beautified fingerprints svn:r2422
2004-10-03Only check versions against downloaded directories, not cached directories.tor-0.0.9pre2Nick Mathewson
svn:r2413
2004-09-28Fix an evil bug: when we failed to write to our log, fputs()Roger Dingledine
gave us a sigpipe, and we logged that we were ignoring it, causing us to fail to log that, and delete the log entry. Then when the signal handler exited, we proceeded to delete the log entry that had already been deleted. Now we make sure to only log inside our signal handler if we'll be exit()ing right after. svn:r2388
2004-09-27checking only 0.0.7 and 0.0.8 didn't work, because some dirserversRoger Dingledine
files have really old descriptors for the authdirservers, so we're asking them in the new format because they're too old. now we actually compare the version to a cutoff version, and act appropriately. also take this chance to use only >=0.0.8 servers for dns resolves, because of the recent bugs. we'll bump to >=0.0.9pre1 once there are some servers running that. svn:r2380
2004-09-23cleanup: use strcmpstart() in more placesRoger Dingledine
svn:r2372
2004-09-02Add basic wrappers for zlib/gzipNick Mathewson
svn:r2324
2004-08-18Functions to test nickname validityNick Mathewson
svn:r2269
2004-08-17Move string-splitting into a separate functionNick Mathewson
svn:r2263
2004-08-15o clients choose nodes proportional to advertised bandwidthRoger Dingledine
o and/or while avoiding unreliable nodes, depending on goals o 'fascistfirewall' option to pick dirservers on port 80 and ORs on port 443. o if a begin failed due to exit policy, but we believe the IP should have been allowed, switch that router to exitpolicy reject *:* until we get our next directory. svn:r2231
2004-08-11Clean up tempdir after finishing unittests; use tor_temp_$PID instead of ↵Nick Mathewson
tor_temp; quit if tor_temp_$PID exists. svn:r2226
2004-08-09Make unittests passNick Mathewson
svn:r2205
2004-08-07Refactor ISO-style (yyyy-mm-dd hh:mm:ss) time parsing into util.c; rename ↵Nick Mathewson
format/parse_rfc1123_time; make rephist remember used bandwidth; published used bandwidth in descriptors in 15-minute chunks. Breaks unittests. svn:r2182
2004-08-04Add functions to format and parse RFC1123-style times, for HTTP protocol.Nick Mathewson
svn:r2129
2004-07-22stop using atexit() to remove our pid, since it's calledRoger Dingledine
immediately when we daemonize. also drop our retry period for hidserv desc uploads from 10m to 5m svn:r2111