aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
AgeCommit message (Collapse)Author
2009-08-17Remove ./configure option for entry and dir request statistics.Karsten Loesing
2009-08-07Disable .exit notation unless AllowDotExit is 1.Roger Dingledine
2009-07-24Fix unit tests.Karsten Loesing
Now that we require EntryStatistics to be 1 for counting connecting clients, unit tests need to set that config option, too. Reported by Sebastian Hahn.
2009-05-31Merge branch 'hardware_accel_improvements'Nick Mathewson
2009-05-27Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-27Fix unit tests that were broken after last fix of #932.Karsten Loesing
With the last fix of task 932 (5f03d6c), client requests are only added to the history when they happen after the start of the current history. This conflicts with the unit tests that insert current requests first (defining the start of the client request history) followed by requests in the past. The fix is to insert requests in chronological order in the unit tests.
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-23Add support for dynamic OpenSSL hardware crypto acceleration engines.Martin Peck
2009-05-04Drop version 0 hidserv support on service side.Karsten Loesing
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-04-01log more verbosely when we accept or decline a router descriptor,Roger Dingledine
to help track whether we received them when a relay operator claims they got sent. svn:r19213
2009-03-03Actually use tor_sscanf() to parse untrusted input.Nick Mathewson
svn:r18761
2009-03-03Add a simple locale-independent no-surprises sscanf replacement.Nick Mathewson
tor_sscanf() only handles %u and %s for now, which will make it adequate to replace sscanf() for date/time/IP parsing. We want this to prevent attackers from constructing weirdly formed descriptors, cells, addresses, HTTP responses, etc, that validate under some locales but not others. svn:r18760
2009-01-13True, 17 is greater than 0. But this applies to 4111 as well.Karsten Loesing
svn:r18097
2009-01-13Fix up (I hope) most ot the things that coverity suddenly claimed were ↵Nick Mathewson
REVERSE_INULL. This is what we get for bragging about being down to 0 issues. svn:r18096
2009-01-13Do the tor_assert hack everywhere in test_crypto_aes_iv.Nick Mathewson
svn:r18095
2009-01-04Another round of downgrading removing or postponing XXXX021 issues. Some ↵Nick Mathewson
remain, though. svn:r17888
2009-01-04Fix the oldest bug in a while: stop accepting 1.2.3 as a valid IPv4 address ↵Nick Mathewson
on any platform. svn:r17887
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
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
2008-12-26Refactor tor_addr_compare_masked() so that CMP_SEMANTIC makes more sense, ↵Nick Mathewson
and has decent semantics for maskbits; and so that CMP_EXACT works right for bits==0. svn:r17788
2008-12-25some fixes i found in my sandboxRoger Dingledine
svn:r17771
2008-12-23Remove bogus extern declaration for unused (and nonexistant) field from test.cNick Mathewson
svn:r17755
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-22Make freelist_len in memarea.c static; document a few variables.Nick Mathewson
svn:r17741
2008-12-22Expose bench_* functions via test cliNick Mathewson
svn:r17740
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-19Move in-addr.arpa parsing and generation into address.c, and simplify the ↵Nick Mathewson
code that does it elsewhere. Incidentally, this lets exit servers answer requests for ip6.arpa addresses. svn:r17707
2008-12-18Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson
per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow. svn:r17690
2008-12-18whitespace fixes.Nick Mathewson
svn:r17683
2008-12-18Make unit tests slower but more reliable by disabling an old optimization.Nick Mathewson
To turn it back on, re-define CACHE_GENERATED_KEYS option in test.c. svn:r17677
2008-12-18Fix more leaks in unit tests.Nick Mathewson
svn:r17676
2008-12-18Fix bug 889: share deep-copied keys between threads to avoid races in ↵Nick Mathewson
reference counts. Bugfix on 0.1.0.1-rc. svn:r17672
2008-12-18Massage a little code to hopfully please coverity.Nick Mathewson
svn:r17669
2008-12-17Make return code from router_add_to_routerlist a nice sensible enum. Based ↵Nick Mathewson
on patch from Sebastian. svn:r17656
2008-12-12Implement the /tor/keys/fp-sk/ URL format. That mostly finishes the server ↵Nick Mathewson
side of 157. svn:r17611
2008-12-12Add cross-certification to authority key certificates. Partial ↵Nick Mathewson
implementation of proposal 157. svn:r17610
2008-12-11Do not discard sign on return values of iv crypto functions in tests. May ↵Nick Mathewson
fix CID 9. Might not. svn:r17603
2008-12-11Fix two more unit-test bugs (deadcode this time) spotted by Coverity run 7.Nick Mathewson
CIDs == 357, 356. svn:r17599
2008-12-11Fix error in last unit test mem-leak-fixing.Nick Mathewson
svn:r17596
2008-12-11Fix memory leaks in test_util_smartlist_* functions.Nick Mathewson
svn:r17580
2008-12-11Fix memory leaks in test_v3_networkstatus.Nick Mathewson
svn:r17579
2008-12-11Fix memory leaks in test_dir_formatNick Mathewson
svn:r17578
2008-12-07New DirPortFrontPage option that takes an html file and publishes it as "/" ↵Jacob Appelbaum
on the DirPort. Now relay operators can provide a disclaimer without needin to set up a separate webserver. There's a sample disclaimer in contrib/tor-exit-notice.html. svn:r17500
2008-12-05Fix more leaks in test_util_memarea().Nick Mathewson
svn:r17491
2008-12-05Fix a resource leak in test_dir_formats()Nick Mathewson
svn:r17488
2008-12-05Split test_util_smartlist into manageable chunks; make them free memory ↵Nick Mathewson
properly. svn:r17487