aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
Commit message (Collapse)AuthorAge
* karsten's second refactoring patchRoger Dingledine2007-11-29
| | | | svn:r12607
* Exit policies now reject connections that are addressed to aRoger Dingledine2007-11-10
| | | | | | | | | | relay's public (external) IP address too, unless ExitPolicyRejectPrivate is turned off. We do this because too many relays are running nearby to services that trust them based on network address. svn:r12459
* r14677@tombo: nickm | 2007-11-03 15:16:27 -0400Nick Mathewson2007-11-03
| | | | | | | Add a smartlist_bsearch_idx function that gives more useful output than regular bsearch for the value-not-found case. svn:r12360
* r16302@catbus: nickm | 2007-10-31 16:45:16 -0400Nick Mathewson2007-10-31
| | | | | | | Clean spaces. svn:r12301
* r16287@catbus: nickm | 2007-10-31 00:53:53 -0400Nick Mathewson2007-10-31
| | | | | | | HMAC-SHA-1 implementation, with unit tests based on vectors from RVFC2202. Steven's stuff will need this. svn:r12289
* r16236@catbus: nickm | 2007-10-28 14:36:30 -0400Nick Mathewson2007-10-28
| | | | | | | Patch from Karsten Loesing: encode and parse v2 rendezvous descriptors. svn:r12254
* r16014@catbus: nickm | 2007-10-21 20:29:14 -0400Nick Mathewson2007-10-22
| | | | | | | Fix a unit test in test_crypto_base32_decode that would fail one time in 32. svn:r12087
* r15967@catbus: nickm | 2007-10-19 14:14:47 -0400Nick Mathewson2007-10-19
| | | | | | | Change meaning of "freefn" argument to smartlist_uniq so that we can remove duplicates from a list without freeing them. svn:r12053
* r15961@catbus: nickm | 2007-10-19 12:40:15 -0400Nick Mathewson2007-10-19
| | | | | | | Learn the difference between "mismatched vote digest" and "mismatched vote times": the latter is more informative. svn:r12049
* r15882@catbus: nickm | 2007-10-17 15:23:05 -0400Nick Mathewson2007-10-17
| | | | | | | oprofile was telling me that a fair bit of our time in openssl was spent in base64_decode, so replace base64_decode with an all-at-once fairly optimized implementation. For decoding keys and digests, it seems 3-3.5x faster than calling out to openssl. (Yes, I wrote it from scratch.) svn:r12002
* r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson2007-10-17
| | | | | | | Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff". svn:r12000
* r15790@catbus: nickm | 2007-10-15 11:38:28 -0400Nick Mathewson2007-10-15
| | | | | | | Fix bug 528: fix memory leak in base32_decode(). While there, also make base32_decode() accept upper-case inputs. svn:r11946
* r15412@catbus: nickm | 2007-09-27 12:04:24 -0400Nick Mathewson2007-09-27
| | | | | | | More annotated-store work: handle annotations in lists correctly. Add ability to prepend annotations to a routerdesc (and to every rtouredesc in a list), while verifying that the routerdesc is not already annotated. svn:r11665
* r15400@catbus: nickm | 2007-09-26 12:13:12 -0400Nick Mathewson2007-09-26
| | | | | | | Backend for descriptor annotations: parse annotations as keywords; only allow them to appear in the cache; do not serve them as part of the descriptor if we are a dirserver. Still need mechanism to set annotations. Still need to rename cache file. svn:r11654
* r15279@catbus: nickm | 2007-09-22 02:00:06 -0400Nick Mathewson2007-09-22
| | | | | | | V3 authority work: fetch missing votes and/or signatures as needed. svn:r11575
* r15231@catbus: nickm | 2007-09-20 16:04:30 -0400Nick Mathewson2007-09-20
| | | | | | | Patch from karsten: remove cbc and make unit tests handle aes-ctr-with-iv. svn:r11538
* r15167@catbus: nickm | 2007-09-19 11:19:08 -0400Nick Mathewson2007-09-19
| | | | | | | Fix unit tests for rendezvous descriptor parsing. svn:r11516
* Drop support for v1 rendezvous descriptors, since we never usedRoger Dingledine2007-09-18
| | | | | | | | them anyway, and the code has probably rotted by now. Based on patch from Karsten Loesing. svn:r11496
* add some crypto/util functions from karsten, as the firstRoger Dingledine2007-09-18
| | | | | | | step of integrating his new hidden service stuff svn:r11489
* Servers used to decline to publish their DirPort if theirRoger Dingledine2007-09-17
| | | | | | | | | BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth were below a threshold. Now they only look at BandwidthRate and RelayBandwidthRate. svn:r11465
* r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400Nick Mathewson2007-09-17
| | | | | | | Unify all of the divergent median/nth-percentile code in container.[ch] svn:r11457
* r14392@Kushana: nickm | 2007-09-12 11:04:20 -0400Nick Mathewson2007-09-12
| | | | | | | Complete implementation of proposal 104: remove bandwidth history lines from router descriptors. svn:r11434
* r14391@Kushana: nickm | 2007-09-12 10:56:17 -0400Nick Mathewson2007-09-12
| | | | | | | Remove some needless complexity from the code to add signatures to a consensus: previously, we had a path to add new signatures, and a second path to replace signatures. But the second path sufficed as a common case, and the code isn't invoked nearly enough to justify the optimization of having the first path. svn:r11433
* r14830@catbus: nickm | 2007-08-29 13:50:10 -0400Nick Mathewson2007-08-29
| | | | | | | Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate. svn:r11299
* r14661@catbus: nickm | 2007-08-18 15:38:08 -0400Nick Mathewson2007-08-18
| | | | | | | Long overdue test.c refactoring: add --warn/--notice/--info/--debug command line options to set logging levels, and let the user specify which tests to run from the commmand line. svn:r11167
* r14634@catbus: nickm | 2007-08-17 16:43:49 -0400Nick Mathewson2007-08-17
| | | | | | | Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly. svn:r11155
* r14043@Kushana: nickm | 2007-08-15 12:12:25 -0400Nick Mathewson2007-08-15
| | | | | | | Fix consensus signatures: regenerate the entire signature list when we get a new signature, rather than just appending the new signature. This lets us tentatively accept weird signatures, since we can replace them with better ones later. svn:r11122
* r14032@Kushana: nickm | 2007-08-15 11:35:16 -0400Nick Mathewson2007-08-15
| | | | | | | Add unit tests for median functions; enforce sensible ranges for intervals and delays. svn:r11121
* r14015@Kushana: nickm | 2007-08-14 12:39:04 -0400Nick Mathewson2007-08-14
| | | | | | | Try to avoid adding duplicate signatures to a consensus. svn:r11105
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson2007-08-08
| | | | | | | Include fewer redundant headers; use the compiler search paths better. svn:r11060
* r13927@Kushana: nickm | 2007-08-03 00:56:54 -0700Nick Mathewson2007-08-03
| | | | | | | ratchet down the time spent on threading tests svn:r11043
* r13886@Kushana: nickm | 2007-08-01 09:43:06 -0700Nick Mathewson2007-08-01
| | | | | | | Unit tests and debugging for detached signature manipulation. svn:r11015
* r13872@Kushana: nickm | 2007-07-31 08:27:54 -0700Nick Mathewson2007-08-01
| | | | | | | Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build. svn:r11011
* Stop pretending all systems are fastPeter Palfrader2007-07-31
| | | | svn:r11003
* r13926@catbus: nickm | 2007-07-26 17:21:06 -0400Nick Mathewson2007-07-26
| | | | | | | Add a bit-array type with reasonably fast inline functions. svn:r10938
* r13921@catbus: nickm | 2007-07-26 16:26:48 -0400Nick Mathewson2007-07-26
| | | | | | | Code to add signatures to a pending consensus directory. svn:r10936
* r13848@catbus: nickm | 2007-07-19 16:47:16 -0400Nick Mathewson2007-07-19
| | | | | | | Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks. svn:r10888
* r13846@catbus: nickm | 2007-07-19 16:31:41 -0400Nick Mathewson2007-07-19
| | | | | | | Actually, OSX (and some BSDs) accept [f:f:f:f:f:f:f:f::] as a perfectly fine ipv6 address. svn:r10887
* r13844@catbus: nickm | 2007-07-19 16:04:04 -0400Nick Mathewson2007-07-19
| | | | | | | Same as the last patch, only more so. svn:r10886
* r13842@catbus: nickm | 2007-07-19 16:02:54 -0400Nick Mathewson2007-07-19
| | | | | | | OSX writes ::3 as ::0.0.0.3; choose a less ambiguous example. svn:r10885
* r13834@catbus: nickm | 2007-07-19 15:40:42 -0400Nick Mathewson2007-07-19
| | | | | | | Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time. svn:r10881
* r13827@catbus: nickm | 2007-07-19 14:42:25 -0400Nick Mathewson2007-07-19
| | | | | | | Merge in some generic address manipulation code from croup. Needs some work. svn:r10880
* r13604@catbus: nickm | 2007-07-02 16:58:40 -0400Nick Mathewson2007-07-02
| | | | | | | Some temporary output to try to figure out where bsd thread unit tests are going wrong svn:r10728
* r13568@catbus: nickm | 2007-06-30 15:18:18 -0400Nick Mathewson2007-06-30
| | | | | | | allow test_threads() to time out svn:r10711
* r13555@catbus: nickm | 2007-06-30 14:05:36 -0400Nick Mathewson2007-06-30
| | | | | | | Split "Util" tests into subgroups so I can see why freebsd trunk is failing. svn:r10710
* r13477@catbus: nickm | 2007-06-17 14:22:03 -0400Nick Mathewson2007-06-17
| | | | | | | 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
* r13476@catbus: nickm | 2007-06-17 14:04:41 -0400Nick Mathewson2007-06-17
| | | | | | | Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.) svn:r10644
* r13438@catbus: nickm | 2007-06-15 15:01:42 -0400Nick Mathewson2007-06-17
| | | | | | | document some functions svn:r10637
* r13418@catbus: nickm | 2007-06-14 13:29:21 -0400Nick Mathewson2007-06-17
| | | | | | | Adjust networkstatus_compute_consensus to take an argument saying how many voters there _should_ be. svn:r10634
* r13409@catbus: nickm | 2007-06-13 18:01:56 -0400Nick Mathewson2007-06-13
| | | | | | | Test the remainder of the contents of the consensus; fix a bug in geneating addresses on routerstatuses. svn:r10597