Skip to content
Snippets Groups Projects
  1. Jun 28, 2018
  2. Jun 27, 2018
  3. Jun 26, 2018
    • Nick Mathewson's avatar
      Extract core part of smartlist code into its own library. · b1de1e7a
      Nick Mathewson authored
      The smartlist_core library now contains only the parts of smartlists
      that are needed for the logging library.  This resolves the
      circularity between "container" and "log".
      
      The "containers" library still uses the logging code, and has the
      higher-level smartlist functions.
      b1de1e7a
  4. Jun 22, 2018
  5. Jun 21, 2018
  6. Jun 19, 2018
    • Nick Mathewson's avatar
      Use a rust build script to set linker options correctly for tests. · bd9ebb37
      Nick Mathewson authored
      We need this trick because some of our Rust tests depend on our C
      code, which in turn depend on other native libraries, which thereby
      pulls a whole mess of our build system into "cargo test".
      
      To solve this, we add a build script (build.rs) to set most of the
      options that we want based on the contents of config.rust.  Some
      options can't be set, and need to go to the linker directly: we use
      a linker replacement (link_rust.sh) for these.  Both config.rust and
      link_rust.sh are generated by autoconf for us.
      
      This patch on its own should enough to make the crypto test build,
      but not necessarily enough to make it pass.
      bd9ebb37
  7. Dec 13, 2017
  8. Nov 01, 2017
  9. Sep 19, 2017
  10. Sep 07, 2017
  11. May 19, 2017
    • Sebastian Hahn's avatar
      Allow Rust build using locally supplied crates or crates.io · 70c06710
      Sebastian Hahn authored and Nick Mathewson's avatar Nick Mathewson committed
      This adds a couple of configure commands to control whether we're
      requiring all dependencies to be available locally (default) or not
      (--enable-cargo-online-mode). When building from a tarball, we require
      the RUST_DEPENDENCIES variable to point to the local repository of
      crates. This also adds src/ext/rust as a git submodule that contains
      such a local repository for easy setup.
      70c06710
  12. Apr 25, 2017
    • David Goulet's avatar
      trace: Add a basic event-tracing infrastructure. · cb8ac1f3
      David Goulet authored and Nick Mathewson's avatar Nick Mathewson committed
      
      This commit adds the src/trace directory containing the basics for our tracing
      subsystem. It is not used in the code base. The "src/trace/debug.h" file
      contains an example on how we can map our tor trace events to log_debug().
      
      The tracing subsystem can only be enabled by tracing framework at compile
      time. This commit introduces the "--enable-tracing-debug" option that will
      make all "tor_trace()" function be maped to "log_debug()".
      
      Closes #13802
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      cb8ac1f3
  13. Apr 13, 2017
  14. Mar 26, 2017
  15. Jan 30, 2017
  16. Dec 23, 2016
    • cypherpunks's avatar
      Remove dead code related to the old tor-fw-helper · d3c0b137
      cypherpunks authored and Nick Mathewson's avatar Nick Mathewson committed
      This commit removes more code related to the old tor-fw-helper which was
      removed in ticket 13338.
      
      Closes ticket 21024.
      d3c0b137
    • cypherpunks's avatar
      Use AM_PROG_AR to improve portability · a1c0ebc3
      cypherpunks authored and Nick Mathewson's avatar Nick Mathewson committed
      Turning on warnings in Automake makes it complain about not using the
      AM_PROG_AR macro. The AM_PROG_AR macro is required when LIBRARIES or
      LTLIBRARIES is used.
      
      The macro looks for an archiver and wraps it in the ar-lib script which
      is automatically generated so Git should ignore it.
      
      It makes the custom check for 'ar' obsolete so it is removed.
      
      The AM_PROG_AR macro was added in Automake 1.11.2 thus the minimum
      Automake version is increased.
      a1c0ebc3
  17. Oct 03, 2016
  18. May 23, 2016
  19. May 12, 2016
    • Nick Mathewson's avatar
      Add -ftrapv to gcc-hardening ... mostly! · ce854a8d
      Nick Mathewson authored
      We know there are overflows in curve25519-donna-c32, so we'll have
      to have that one be fwrapv.
      
      Only apply the asan, ubsan, and trapv options to the code that does
      not need to run in constant time.  Those options introduce branches
      to the code they instrument.
      
      (These introduced branches should never actually be taken, so it
      might _still_ be constant time after all, but branch predictors are
      complicated enough that I'm not really confident here. Let's aim for
      safety.)
      
      Closes 17983.
      ce854a8d
Loading