aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
AgeCommit message (Collapse)Author
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
2004-07-22Add fingerprint to router format in testsNick Mathewson
svn:r2106
2004-07-22now base16_encode() and base32_encode() can't ever failRoger Dingledine
svn:r2103
2004-07-20Split uptime into separate fieldNick Mathewson
svn:r2067
2004-07-16Change rule from "reject non-recommended versions" to "reject obsolete ↵Nick Mathewson
versions". A version is "obsolete" if it is non-recommended, and at least one recommended version is newer than it. svn:r2052
2004-07-15Fix warningNick Mathewson
svn:r2046
2004-07-13Code to parse tor version numbers so we can do an is-newer-than check.Nick Mathewson
svn:r2044
2004-07-12make unit tests pass againRoger Dingledine
but note a bug that i don't know how to address. nick? svn:r2030
2004-07-12add 'advertisedbandwidth' to router descriptorRoger Dingledine
svn:r2028
2004-07-02More digest/nickname fixesNick Mathewson
svn:r2000
2004-06-21Implement several 008pre1 items: needs more testingNick Mathewson
svn:r1981
2004-06-08Use intptr_t correctly in test.c; try to resolve ia64 warningsNick Mathewson
svn:r1963
2004-06-01Check recommended-software string *early*, before actually parsing the ↵Nick Mathewson
directory. svn:r1930
2004-05-12Not every RSA decrypt should warn on failure.Nick Mathewson
svn:r1853
2004-05-10Split directory/router parsing functionality into separate file from ↵Nick Mathewson
routerlist.c svn:r1846
2004-05-05Use intptr_t when playing with void*sNick Mathewson
svn:r1795
2004-05-05Fix compilation warnings on 64-bit platformsNick Mathewson
svn:r1793
2004-05-02patches on patchesRoger Dingledine
svn:r1763
2004-05-01Documenmt buffers.c; remove function that nobody ever calls.Nick Mathewson
svn:r1760
2004-05-01Handle windows socket errors correctly; comment most of common.Nick Mathewson
svn:r1756
2004-04-28Remove IVs from cipher code, since AES-ctr has none.Nick Mathewson
svn:r1742
2004-04-26Refactor crypto error handling to be more like TLS error handling:Nick Mathewson
crypto_perror is a no-no, since an operation can set more than one error. Also, fix a bug in the unix crypto_seed_rng: mixing stdio with /dev/urandom is a bad idea, since fopen can make all kinds of weird extraneous syscalls (mmap, fcntl, stat64, etc.) and since fread tends to buffer data in big chunks, thus depleting the entropy pool. svn:r1717
2004-04-25use tor_assertRoger Dingledine
remove obsolete BUF_OK macro svn:r1697
2004-04-24Merge flagday into main branch.Nick Mathewson
svn:r1683
2004-04-14Never ever leave ri.platform unset.Nick Mathewson
svn:r1624
2004-04-08remove a stray printfNick Mathewson
svn:r1575
2004-04-08Fix base32 implementation; make base32 implementation follow standard; add ↵Nick Mathewson
more tests for base32 svn:r1574
2004-04-08Fix unit tests (now that platform code works differently)Nick Mathewson
svn:r1573
2004-04-07Delete trailing whitespace and expand tabs; remove unused aes decrypt codeNick Mathewson
svn:r1522
2004-04-07Put ourself in router list; act accordingly.Nick Mathewson
svn:r1521
2004-04-06Force hybrid encryption on for key negotiationNick Mathewson
svn:r1509