1. 12 Dec, 2009 1 commit
    • Sebastian Hahn's avatar
      *_free functions now accept NULL · 3807db00
      Sebastian Hahn authored
      Some *_free functions threw asserts when passed NULL. Now all of them
      accept NULL as input and perform no action when called that way.
      
      This gains us consistence for our free functions, and allows some
      code simplifications where an explicit null check is no longer necessary.
      3807db00
  2. 22 Nov, 2009 1 commit
  3. 24 Sep, 2009 1 commit
    • Nick Mathewson's avatar
      Debugging logs for TLS handshake · b8b29353
      Nick Mathewson authored
      The big change is to add a function to display the current SSL handshake
      state, and to log it everywhere reasonable.  (A failure in
      SSL23_ST_CR_SRVR_HELLO_A is different from one in
      SSL3_ST_CR_SESSION_TICKET_A.)
      
      This patch also adds a new log domain for OR handshaking, so you can pull out
      all the handshake log messages without having to run at debug for everything.
      For example, you'd just say "log notice-err [handshake]debug-err file
      tor.log".
      b8b29353
  4. 01 Sep, 2009 1 commit
  5. 20 Aug, 2009 1 commit
    • Nick Mathewson's avatar
      Fix a rare infinite-recursion bug when shutting down. · 9d118277
      Nick Mathewson authored
      Once we had called log_free_all(), anything that tried to log a
      message (like a failed tor_assert()) would fail like this:
      
         1. The logging call eventually invokes the _log() function.
         2. _log() calls tor_mutex_lock(log_mutex).
         3. tor_mutex_lock(m) calls tor_assert(m).
         4. Since we freed the log_mutex, tor_assert() fails, and tries to
            log its failure.
         5. GOTO 1.
      
      Now we allocate the mutex statically, and never destroy it on
      shutdown.
      
      Bugfix on 0.2.0.16-alpha, which introduced the log mutex.
      
      This bug was found by Matt Edman.
      9d118277
  6. 12 Jun, 2009 1 commit
    • Nick Mathewson's avatar
      Update Tor to use Libevent 2.0 APIs when available. · e5b88dc8
      Nick Mathewson authored
      This patch adds a new compat_libevent.[ch] set of files, and moves our
      Libevent compatibility and utilitity functions there.  We build them
      into a separate .a so that nothing else in src/commmon depends on
      Libevent (partially fixing bug 507).
      
      Also, do not use our own built-in evdns copy when we have Libevent
      2.0, whose evdns is finally good enough (thus fixing Bug 920).
      e5b88dc8
  7. 04 May, 2009 1 commit
  8. 02 May, 2009 1 commit
  9. 23 Jan, 2009 1 commit
  10. 04 Jan, 2009 1 commit
  11. 30 Dec, 2008 1 commit
  12. 22 Dec, 2008 3 commits
  13. 18 Dec, 2008 1 commit
  14. 17 Dec, 2008 1 commit
  15. 02 Dec, 2008 1 commit
  16. 17 Nov, 2008 1 commit
  17. 23 Sep, 2008 1 commit
  18. 05 Sep, 2008 1 commit
  19. 27 Mar, 2008 2 commits
  20. 26 Mar, 2008 2 commits
  21. 17 Mar, 2008 1 commit
  22. 13 Mar, 2008 3 commits
  23. 11 Mar, 2008 1 commit
  24. 08 Mar, 2008 1 commit
  25. 05 Mar, 2008 1 commit
  26. 21 Feb, 2008 1 commit
  27. 07 Feb, 2008 1 commit
  28. 06 Feb, 2008 1 commit
  29. 02 Jan, 2008 1 commit
    • Nick Mathewson's avatar
      r15784@tombo: nickm | 2008-01-02 00:38:06 -0500 · c0ec2815
      Nick Mathewson authored
       Fix bug 575: protect the list of logs with a mutex.  I couldn't find any appreciable change in logging performance on osx, but ymmv. You can undef USE_LOG_MUTEX to see if stuff gets faster for you.
      
      
      svn:r13019
      c0ec2815
  30. 12 Dec, 2007 1 commit
  31. 16 Jul, 2007 1 commit
  32. 29 May, 2007 3 commits